remove redundant closures
This commit is contained in:
parent
6cb69bc63b
commit
3d81eb874f
4 changed files with 5 additions and 5 deletions
|
|
@ -797,7 +797,7 @@ impl cosmic::Application for CosmicNetworkApplet {
|
|||
}
|
||||
|
||||
fn subscription(&self) -> Subscription<Message> {
|
||||
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()
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue