chore: Fix a few warnings

This commit is contained in:
Victoria Brekenfeld 2025-01-02 16:26:56 +01:00 committed by Victoria Brekenfeld
parent f12f4db0e1
commit 61b0dddf50
2 changed files with 3 additions and 6 deletions

View file

@ -871,7 +871,7 @@ impl CosmicMapped {
match &self.element {
CosmicMappedInternal::Window(w) => (!w.surface().is_decorated(pending))
.then(|| crate::shell::element::window::SSD_HEIGHT),
CosmicMappedInternal::Stack(s) => Some(crate::shell::element::stack::TAB_HEIGHT),
CosmicMappedInternal::Stack(_) => Some(crate::shell::element::stack::TAB_HEIGHT),
_ => unreachable!(),
}
}

View file

@ -1,9 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
use std::{
collections::{HashMap, HashSet},
sync::Mutex,
};
use std::{collections::HashMap, sync::Mutex};
use cosmic_protocols::{
overlap_notify::v1::server::{
@ -169,7 +166,7 @@ pub trait OverlapNotifyHandler: ToplevelInfoHandler {
fn overlap_notify_state(&mut self) -> &mut OverlapNotifyState;
fn layer_surface_from_resource(&self, resource: ZwlrLayerSurfaceV1) -> Option<LayerSurface>;
fn outputs(&self) -> impl Iterator<Item = Output>;
fn active_workspaces(&self) -> impl Iterator<Item = (WorkspaceHandle)>;
fn active_workspaces(&self) -> impl Iterator<Item = WorkspaceHandle>;
}
pub struct OverlapNotifyGlobalData {