Skip to content

Commit fa5d9df

Browse files
committed
Apply clippy suggestion
1 parent fa12cb0 commit fa5d9df

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

frontend/src/dark_mode.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ pub fn init_dark_mode() {
2222
}
2323
};
2424

25-
let body_invert = match local_storage.get_item(BODY_INVERT_KEY).unwrap().as_deref() {
26-
Some(INVERT) => true,
27-
_ => false,
28-
};
25+
let body_invert = matches!(local_storage.get_item(BODY_INVERT_KEY).unwrap().as_deref(), Some(INVERT));
2926

3027
let body = web_sys::window()
3128
.unwrap()

0 commit comments

Comments
 (0)