Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Sep 10, 2023
1 parent 5934dad commit 242b536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxi-api/src/types/window_border_char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fn str_to_char(str: &str) -> Option<char> {
0 => None,
1 => Some(str.as_bytes()[0] as char),
// This handles multibyte characters.
2 | 3 | 4 => {
2..=4 => {
char::decode_utf16(str.encode_utf16()).next().and_then(Result::ok)
},
_ => unreachable!(),
Expand Down

0 comments on commit 242b536

Please sign in to comment.