From aaf49c4471a1179b0823c7f0b254d2efa56c41ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Tue, 23 Jul 2024 15:58:39 +0200 Subject: [PATCH] Fix clippy warning around useless ? --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 32d955e..2fa98b1 100644 --- a/src/config.rs +++ b/src/config.rs @@ -53,7 +53,7 @@ fn unicode_notation_to_char(unicode_notation: &str) -> Result Option { let hex_str_number = unicode_notation.strip_prefix("U+")?; let int_number = u32::from_str_radix(hex_str_number, 16).ok()?; - Some(char::from_u32(int_number)?) + char::from_u32(int_number) }; parse(unicode_notation).ok_or_else(|| InvalidCharacterType(unicode_notation.to_owned())) }