From b259655839baed24010d31475d019158002b869c Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 16 Jan 2025 10:19:58 -0800 Subject: [PATCH] Address some warnings --- src/backend/mod.rs | 2 ++ src/main.rs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/mod.rs b/src/backend/mod.rs index ecde02d..8d9cfee 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -44,7 +44,9 @@ pub struct CaptureFilter { #[derive(Clone, Debug)] pub struct CaptureImage { + #[allow(dead_code)] pub width: u32, + #[allow(dead_code)] pub height: u32, pub wl_buffer: SubsurfaceBuffer, pub transform: wl_output::Transform, diff --git a/src/main.rs b/src/main.rs index e938d61..a2d96c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,6 +56,7 @@ struct CosmicWorkspacesConfig { // Include `pid` in mime. Want to drag between our surfaces, but not another // process, if we use Wayland object ids. +#[allow(dead_code)] static WORKSPACE_MIME: Lazy = Lazy::new(|| format!("text/x.cosmic-workspace-id-{}", std::process::id())); @@ -112,7 +113,7 @@ impl cosmic::iced::clipboard::mime::AllowedMimeTypes for DragToplevel { impl TryFrom<(Vec, std::string::String)> for DragToplevel { type Error = (); - fn try_from((bytes, mime_type): (Vec, String)) -> Result { + fn try_from((_bytes, mime_type): (Vec, String)) -> Result { if mime_type == *TOPLEVEL_MIME { Ok(Self {}) } else {