pkstrings: Utilize HashMap's FromIterator impl
Thanks phaazon! Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
fedac8daf7
commit
62a9e24b97
1 changed files with 1 additions and 5 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue