mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Remove many unwraps or change to maps
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user