Skip to content

Commit

Permalink
tidy formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Jan 4, 2022
1 parent 5166682 commit 205c6ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hid_backlight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ pub fn daemon() {
let brightness_string = fs::read_to_string(&brightness_file).unwrap();
let brightness = brightness_string.trim().parse::<u8>().unwrap();

#[rustfmt::skip]
let color_string = fs::read_to_string(&color_file)
.unwrap_or_else(|_| String::from("FFFFFF")); // Fallback for non-colored keyboards
// Fallback for non-colored keyboards
.unwrap_or_else(|_| String::from("FFFFFF"));
let color = u32::from_str_radix(color_string.trim(), 16).unwrap();

let mut devices = 0;
Expand Down

0 comments on commit 205c6ff

Please sign in to comment.