From 61b0dddf50c7c844d12871ead40dd3c69ac01256 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Thu, 2 Jan 2025 16:26:56 +0100 Subject: [PATCH] chore: Fix a few warnings --- src/shell/element/mod.rs | 2 +- src/wayland/protocols/overlap_notify.rs | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/shell/element/mod.rs b/src/shell/element/mod.rs index dfcb87e3..948a0c72 100644 --- a/src/shell/element/mod.rs +++ b/src/shell/element/mod.rs @@ -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!(), } } diff --git a/src/wayland/protocols/overlap_notify.rs b/src/wayland/protocols/overlap_notify.rs index 1c7d2864..06b450d5 100644 --- a/src/wayland/protocols/overlap_notify.rs +++ b/src/wayland/protocols/overlap_notify.rs @@ -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; fn outputs(&self) -> impl Iterator; - fn active_workspaces(&self) -> impl Iterator; + fn active_workspaces(&self) -> impl Iterator; } pub struct OverlapNotifyGlobalData {