Skip to content

Commit

Permalink
Apply clippy suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonbaeten committed Sep 11, 2023
1 parent fa12cb0 commit fa5d9df
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/src/dark_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ pub fn init_dark_mode() {
}
};

let body_invert = match local_storage.get_item(BODY_INVERT_KEY).unwrap().as_deref() {
Some(INVERT) => true,
_ => false,
};
let body_invert = matches!(local_storage.get_item(BODY_INVERT_KEY).unwrap().as_deref(), Some(INVERT));

let body = web_sys::window()
.unwrap()
Expand Down

0 comments on commit fa5d9df

Please sign in to comment.