From 0010f9dac61c849fa22aa60372608c7ebee9587e Mon Sep 17 00:00:00 2001 From: Ryan Brue Date: Tue, 13 Aug 2024 18:02:18 -0500 Subject: [PATCH] fix: warnings Signed-off-by: Ryan Brue --- src/compositor/cosmic_comp.rs | 4 ++-- src/compositor/mod.rs | 5 +---- src/main.rs | 20 ++++++-------------- 3 files changed, 9 insertions(+), 20 deletions(-) diff --git a/src/compositor/cosmic_comp.rs b/src/compositor/cosmic_comp.rs index eb653e5..59e8354 100644 --- a/src/compositor/cosmic_comp.rs +++ b/src/compositor/cosmic_comp.rs @@ -41,7 +41,7 @@ use iced::{ use once_cell::sync::Lazy; struct WaylandData { - conn: Connection, + _conn: Connection, queue_handle: QueueHandle, output_state: OutputState, workspace_state: WorkspaceState, @@ -375,7 +375,7 @@ fn wayland_handler(tx: UnboundedSender, rx: Channel Application for Panel<'a> { type Renderer = iced::Renderer; type Flags = (); - fn new(flags: Self::Flags) -> (Self, iced::Command) { + fn new(_flags: Self::Flags) -> (Self, iced::Command) { (Panel::default(), Command::::none()) } - fn title(&self, id: iced::window::Id) -> String { + fn title(&self, _id: iced::window::Id) -> String { "Window".into() } @@ -95,7 +87,7 @@ impl<'a> Application for Panel<'a> { fn view( &self, - id: iced::window::Id, + _id: iced::window::Id, ) -> iced::Element<'_, Self::Message, Self::Theme, Self::Renderer> { let favorites_images = self .panel_config