diff --git a/pkstrings/src/lib.rs b/pkstrings/src/lib.rs index 0ec404f..cc59b8b 100644 --- a/pkstrings/src/lib.rs +++ b/pkstrings/src/lib.rs @@ -21,7 +21,7 @@ use std::ops::Deref; lazy_static! { static ref STRTOHEX: HashMap = { - let tmp = [ + [ ('A', 0x80), ('B', 0x81), ('C', 0x82), @@ -106,9 +106,7 @@ lazy_static! { ('9', 0xff), (' ', 0x7f), ('@', 0x50), - ]; - - tmp.iter().copied().collect() + ].iter().copied().collect() }; static ref HEXTOSTR: Vec> = { let tmp = [