Clippy fixes

This commit is contained in:
Ian Douglas Scott 2023-02-09 14:29:34 -08:00
parent 8c690e9648
commit a5b78a4300
4 changed files with 38 additions and 35 deletions

View file

@ -1,6 +1,6 @@
use cosmic::iced::{self, futures::StreamExt, subscription};
use futures_channel::mpsc;
use std::{fmt::Debug, hash::Hash};
use std::fmt::Debug;
use zbus::{dbus_interface, Connection, ConnectionBuilder};
pub fn subscription() -> iced::Subscription<Event> {
@ -36,7 +36,7 @@ async fn start_listening(state: State) -> (Option<Event>, State) {
return (None, State::Waiting(conn, rx));
}
}
return (None, State::Finished);
(None, State::Finished)
}
State::Waiting(conn, mut rx) => {
if let Some(Event::Toggle) = rx.next().await {