Remove unused imports (#3589)

* Remove unused imports
This commit is contained in:
Quentin Le Sceller
2021-03-08 10:36:16 -05:00
committed by GitHub
parent 35740204a1
commit 45f74c396d
12 changed files with 11 additions and 21 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ pub fn to_entropy(mnemonic: &str) -> Result<Vec<u8>, Error> {
let mut hash = [0; 32];
let mut sha2sum = Sha256::default();
sha2sum.input(&entropy.clone());
sha2sum.input(&entropy);
hash.copy_from_slice(sha2sum.result().as_slice());
let actual = (hash[0] >> (8 - checksum_bits)) & mask;