Remove many unwraps or change to maps

This commit is contained in:
Luke D Jones
2020-09-23 20:47:33 +12:00
parent 67ad38a7e6
commit a7419cbc4c
13 changed files with 70 additions and 40 deletions

View File

@@ -237,7 +237,7 @@ impl AuraDbusClient {
"/org/asuslinux/Gfx",
Duration::from_millis(5000),
);
let x = proxy.power().unwrap();
let x = proxy.power()?;
Ok(x)
}
@@ -248,7 +248,7 @@ impl AuraDbusClient {
"/org/asuslinux/Gfx",
Duration::from_millis(5000),
);
let x = proxy.vendor().unwrap();
let x = proxy.vendor()?;
Ok(x)
}