Small clippy cleanups

This commit is contained in:
Luke D. Jones
2025-01-04 20:04:07 +13:00
parent 2b7a2a5be3
commit 2123f369ad
6 changed files with 25 additions and 26 deletions

View File

@@ -125,10 +125,8 @@ impl AsusArmouryAttribute {
#[zbus(property)]
async fn current_value(&self) -> fdo::Result<i32> {
if let Ok(v) = self.0.current_value() {
if let AttrValue::Integer(i) = v {
return Ok(i);
}
if let Ok(AttrValue::Integer(i)) = self.0.current_value() {
return Ok(i);
}
Err(fdo::Error::Failed(
"Could not read current value".to_string(),