chore: clippy
This commit is contained in:
parent
6e022755f1
commit
787c5ed49f
14 changed files with 218 additions and 243 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue