From 854f2d75b3fc4746cd379382b20d513951a65493 Mon Sep 17 00:00:00 2001 From: "Luke D. Jones" Date: Mon, 6 Jun 2022 00:09:23 +1200 Subject: [PATCH] Format --- asusctl/src/cli_opts.rs | 5 +---- asusctl/src/main.rs | 5 ++++- daemon/src/ctrl_aura/config.rs | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/asusctl/src/cli_opts.rs b/asusctl/src/cli_opts.rs index dabe37de..0440a152 100644 --- a/asusctl/src/cli_opts.rs +++ b/asusctl/src/cli_opts.rs @@ -59,10 +59,7 @@ pub struct LedModeCommand { help = "set the keyboard LED suspend animation to enabled while the device is suspended" )] pub sleep_enable: Option, - #[options( - meta = "", - help = "set the keyboard side LEDs to enabled" - )] + #[options(meta = "", help = "set the keyboard side LEDs to enabled")] pub side_leds_enable: Option, #[options(command)] pub command: Option, diff --git a/asusctl/src/main.rs b/asusctl/src/main.rs index b5e8cd2e..4eba6e0a 100644 --- a/asusctl/src/main.rs +++ b/asusctl/src/main.rs @@ -356,7 +356,10 @@ fn handle_led_mode( let commands: Vec = cmdlist.lines().map(|s| s.to_string()).collect(); for command in commands.iter().filter(|command| { for mode in &supported.stock_led_modes { - if command.trim().starts_with(&<&str>::from(mode).to_lowercase()) { + if command + .trim() + .starts_with(&<&str>::from(mode).to_lowercase()) + { return true; } } diff --git a/daemon/src/ctrl_aura/config.rs b/daemon/src/ctrl_aura/config.rs index f4b811c8..761557cc 100644 --- a/daemon/src/ctrl_aura/config.rs +++ b/daemon/src/ctrl_aura/config.rs @@ -25,7 +25,7 @@ impl AuraConfigV320 { multizone: self.multizone, awake_enabled: true, sleep_anim_enabled: true, - side_leds_enabled:true, + side_leds_enabled: true, } } } @@ -47,7 +47,7 @@ impl AuraConfigV352 { multizone: self.multizone, awake_enabled: true, sleep_anim_enabled: true, - side_leds_enabled:true, + side_leds_enabled: true, } } } @@ -72,7 +72,7 @@ impl Default for AuraConfig { multizone: None, awake_enabled: true, sleep_anim_enabled: true, - side_leds_enabled:true, + side_leds_enabled: true, } } }