diff --git a/pkstrings/src/lib.rs b/pkstrings/src/lib.rs index 5a6fb1a..0ec404f 100644 --- a/pkstrings/src/lib.rs +++ b/pkstrings/src/lib.rs @@ -108,11 +108,7 @@ lazy_static! { ('@', 0x50), ]; - let mut map = HashMap::new(); - for (k, v) in tmp.iter() { - map.insert(*k, *v); - } - map + tmp.iter().copied().collect() }; static ref HEXTOSTR: Vec> = { let tmp = [