From 8d954c16fa74ff2b773fe4d85612ad0a49b64523 Mon Sep 17 00:00:00 2001 From: Denis Benato Date: Wed, 14 Jan 2026 01:57:48 +0100 Subject: [PATCH] fix: cargo clippy --fix --- asusctl/src/main.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/asusctl/src/main.rs b/asusctl/src/main.rs index 5ee24a4d..972472ba 100644 --- a/asusctl/src/main.rs +++ b/asusctl/src/main.rs @@ -4,7 +4,6 @@ use std::process::Command; use std::thread::sleep; use anime_cli::{AnimeActions, AnimeCommand}; -use argh; use aura_cli::{LedPowerCommand1, LedPowerCommand2}; use dmi_id::DMIID; use fan_curve_cli::FanCurveCommand; @@ -373,7 +372,7 @@ fn handle_anime(cmd: &AnimeCommand) -> Result<(), Box> { proxy.set_builtins_enabled(enable)?; } if let Some(bright) = cmd.brightness { - proxy.set_brightness(bright.into())?; + proxy.set_brightness(bright)?; } if let Some(enable) = cmd.off_when_lid_closed { proxy.set_off_when_lid_closed(enable)?; @@ -861,7 +860,7 @@ fn handle_throttle_profile( } crate::cli_opts::ProfileSubCommand::Get(_) => { println!("Active profile: {current:?}"); - println!(""); + println!(); println!("AC profile {:?}", proxy.platform_profile_on_ac()?); println!("Battery profile {:?}", proxy.platform_profile_on_battery()?); } @@ -1028,7 +1027,7 @@ fn handle_armoury_command(cmd: &ArmouryCommand) -> Result<(), Box { if let Ok(attrs) = find_iface::("xyz.ljones.AsusArmoury") { @@ -1039,7 +1038,7 @@ fn handle_armoury_command(cmd: &ArmouryCommand) -> Result<(), Box { if let Ok(attrs) = find_iface::("xyz.ljones.AsusArmoury") { @@ -1056,7 +1055,7 @@ fn handle_armoury_command(cmd: &ArmouryCommand) -> Result<(), Box