diff --git a/cosmic-app-list/src/app.rs b/cosmic-app-list/src/app.rs index 5e992ad2..94664184 100755 --- a/cosmic-app-list/src/app.rs +++ b/cosmic-app-list/src/app.rs @@ -956,7 +956,7 @@ impl cosmic::Application for CosmicAppList { } }) .on_motion(if self.dnd_offer.is_some() { - |x, y| Message::DndMotion(x, y) + Message::DndMotion } else { |_, _| Message::Ignore }) diff --git a/cosmic-applet-network/src/app.rs b/cosmic-applet-network/src/app.rs index e2e69d94..a455431c 100644 --- a/cosmic-applet-network/src/app.rs +++ b/cosmic-applet-network/src/app.rs @@ -797,7 +797,7 @@ impl cosmic::Application for CosmicNetworkApplet { } fn subscription(&self) -> Subscription { - let network_sub = network_manager_subscription(0).map(|e| Message::NetworkManagerEvent(e)); + let network_sub = network_manager_subscription(0).map(Message::NetworkManagerEvent); let timeline = self .timeline .as_subscription() diff --git a/cosmic-applet-network/src/network_manager/mod.rs b/cosmic-applet-network/src/network_manager/mod.rs index 100e78d3..63512cf4 100644 --- a/cosmic-applet-network/src/network_manager/mod.rs +++ b/cosmic-applet-network/src/network_manager/mod.rs @@ -105,7 +105,7 @@ async fn start_listening( if let Ok(ActiveConnectionState::Deactivated) = next .get() .await - .map(|p| ActiveConnectionState::from(p)) + .map(ActiveConnectionState::from) { break; } diff --git a/cosmic-applet-workspaces/src/components/app.rs b/cosmic-applet-workspaces/src/components/app.rs index d13438ce..e6314d2f 100644 --- a/cosmic-applet-workspaces/src/components/app.rs +++ b/cosmic-applet-workspaces/src/components/app.rs @@ -167,7 +167,7 @@ impl cosmic::Application for IcedWorkspacesApplet { ..button::Appearance::default() }; cosmic::theme::iced::Button::Custom { - active: Box::new(move |theme| appearence(theme)), + active: Box::new(appearence), hover: Box::new(move |theme| button::Appearance { background: Some(Background::Color( theme.current_container().component.hover.into(), @@ -184,7 +184,7 @@ impl cosmic::Application for IcedWorkspacesApplet { ..button::Appearance::default() }; cosmic::theme::iced::Button::Custom { - active: Box::new(move |theme| appearence(theme)), + active: Box::new(appearence), hover: Box::new(move |theme| button::Appearance { background: Some(Background::Color( theme.current_container().component.hover.into(),