styling fix and clippy fixes
This commit is contained in:
1 parent
1364ff62b8
commit
4137f787bf
17 files changed
+123
-75
No files matched your search
@@ -128,10 +128,10 @@ impl Settings {
|
||||
}
|
||||
|
||||
async fn read(&self, namespace: &str, key: &str) -> zbus::fdo::Result<OwnedValue> {
|
||||
if namespace == APPEARANCE {
|
||||
if let Some(value) = self.0.read().await.values().remove(key) {
|
||||
return Ok(value);
|
||||
}
|
||||
if namespace == APPEARANCE
|
||||
&& let Some(value) = self.0.read().await.values().remove(key)
|
||||
{
|
||||
return Ok(value);
|
||||
}
|
||||
Err(zbus::fdo::Error::InvalidArgs("Unknown setting".into()))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user