From ed9c8060963656ea59e3d4505b4e959b1f7f0dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 6 Jul 2020 00:17:34 +0200 Subject: [PATCH] pkstrings: Remove uneeded assignation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- pkstrings/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 = [