From 242b5363d203ddb8b371b4836c80b9da71d09475 Mon Sep 17 00:00:00 2001 From: Riccardo Mazzarini Date: Sun, 10 Sep 2023 19:05:55 +0200 Subject: [PATCH] fix clippy --- crates/oxi-api/src/types/window_border_char.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxi-api/src/types/window_border_char.rs b/crates/oxi-api/src/types/window_border_char.rs index 2d1b5dc6..6dc2d1d0 100644 --- a/crates/oxi-api/src/types/window_border_char.rs +++ b/crates/oxi-api/src/types/window_border_char.rs @@ -101,7 +101,7 @@ fn str_to_char(str: &str) -> Option { 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!(),