styling fix and clippy fixes

This commit is contained in:
Samuel Onoja committed 2026-10-01 08:59:00 +01:00
1 parent 1364ff62b8
commit 4137f787bf
17 files changed
+123 -75

No files matched your search

+4 -4
View File
@@ -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()))
}