]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: fix lint warnings about mixed case hex literals
authorAlice Akaki <akakialice@gmail.com>
Fri, 14 Oct 2022 04:06:31 +0000 (00:06 -0400)
committerVictor Julien <vjulien@oisf.net>
Mon, 24 Oct 2022 09:20:10 +0000 (11:20 +0200)
Ticket: #4593

rust/src/lib.rs
rust/src/rdp/windows.rs

index e9a38a67a163c1c268ef87dfc48a1257cb89401e..e5c3cacd762e8949eb80ca563192e4014219c353 100644 (file)
@@ -39,7 +39,6 @@
 #![allow(clippy::manual_find)]
 #![allow(clippy::match_like_matches_macro)]
 #![allow(clippy::match_ref_pats)]
-#![allow(clippy::mixed_case_hex_literals)]
 #![allow(clippy::module_inception)]
 #![allow(clippy::needless_lifetimes)]
 #![allow(clippy::needless_range_loop)]
index e1a3456040d81546674477dda8b1ac2833366111..c7acd9ad22ad2462b457c77a427cb3fc0b376d44 100644 (file)
@@ -349,7 +349,7 @@ pub fn lcid_to_string<'a>(lcid: u32, default: &'a str) -> String {
         0x0C50 => "mn-Mong-MN",
         0x0C51 => "dz-BT",
         0x0C5F => "tmz-MA",
-        0x0C6b => "quz-PE",
+        0x0C6B => "quz-PE",
         0x1001 => "ar-LY",
         0x1004 => "zh-SG",
         0x1007 => "de-LU",
@@ -415,8 +415,8 @@ pub fn lcid_to_string<'a>(lcid: u32, default: &'a str) -> String {
         0x380C => "fr-MA",
         0x3c01 => "ar-BH",
         0x3c09 => "en-HK",
-        0x3c0A => "es-PY",
-        0x3c0C => "fr-HT",
+        0x3C0A => "es-PY",
+        0x3C0C => "fr-HT",
         0x4001 => "ar-QA",
         0x4009 => "en-IN",
         0x400A => "es-BO",