chore: clippy

This commit is contained in:
Vukašin Vojinović 2026-02-19 18:33:47 +01:00 committed by Michael Murphy
parent 6e022755f1
commit 787c5ed49f
14 changed files with 218 additions and 243 deletions

View file

@ -57,10 +57,10 @@ impl State {
};
let (tx, rx) = tokio::sync::mpsc::unbounded_channel();
let mut enabled = false;
if let Ok(proxy) = StatusProxy::new(&conn).await {
if let Ok(status) = proxy.screen_reader_enabled().await {
enabled = status;
}
if let Ok(proxy) = StatusProxy::new(&conn).await
&& let Ok(status) = proxy.screen_reader_enabled().await
{
enabled = status;
}
_ = output.send(Response::Init(enabled, tx)).await;
Some(State {