pkstrings: Utilize HashMap's FromIterator impl

Thanks phaazon!

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-07-06 00:05:09 +02:00
parent fedac8daf7
commit 62a9e24b97
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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<Option<char>> = {
let tmp = [