From 7edb77b41fee120204f8aff3c0263b0bd9616d9f Mon Sep 17 00:00:00 2001 From: Denis Benato Date: Sun, 18 Jan 2026 23:42:32 +0100 Subject: [PATCH] fix: make the linter happy again --- asusd/src/asus_armoury.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/asusd/src/asus_armoury.rs b/asusd/src/asus_armoury.rs index 54bba44b..ca2b15b9 100644 --- a/asusd/src/asus_armoury.rs +++ b/asusd/src/asus_armoury.rs @@ -196,7 +196,7 @@ impl crate::Reloadable for AsusArmouryAttribute { ) }; - apply_value.map_or(AttrValue::None, |tune| AttrValue::Integer(tune)) + apply_value.map_or(AttrValue::None, AttrValue::Integer) } FirmwareAttributeType::Gpu => { info!("Reload called on GPU attribute {name}: doing nothing"); @@ -429,7 +429,8 @@ impl AsusArmouryAttribute { })?; // write config after setting value - Ok(self.config.lock().await.write()) + self.config.lock().await.write(); + Ok(()) } }