diff --git a/Cargo.toml b/Cargo.toml index 67eedb0..f1f0c81 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tiny-bip39" -version = "0.8.0" +version = "0.8.1" authors = [ "Stephen Oliver ", "Maciej Hirsz ", diff --git a/src/language.rs b/src/language.rs index 1d02e14..45b28bc 100644 --- a/src/language.rs +++ b/src/language.rs @@ -1,7 +1,6 @@ use crate::error::ErrorKind; use crate::util::{Bits, Bits11}; use rustc_hash::FxHashMap; -use zeroize::Zeroize; pub struct WordMap { inner: FxHashMap<&'static str, Bits11>, @@ -113,8 +112,7 @@ mod lazy { /// /// [Mnemonic]: ./mnemonic/struct.Mnemonic.html /// [Seed]: ./seed/struct.Seed.html -#[derive(Debug, Clone, Copy, PartialEq, Zeroize)] -#[zeroize(drop)] +#[derive(Debug, Clone, Copy, PartialEq)] pub enum Language { English, #[cfg(feature = "chinese-simplified")] diff --git a/src/mnemonic.rs b/src/mnemonic.rs index c89fb33..ec47717 100644 --- a/src/mnemonic.rs +++ b/src/mnemonic.rs @@ -147,7 +147,7 @@ impl Mnemonic { // this also validates the checksum and phrase length before returning the entropy so we // can store it. We don't use the validate function here to avoid having a public API that // takes a phrase string and returns the entropy directly. - let entropy = Zeroizing::new( Mnemonic::phrase_to_entropy(&phrase, lang)?); + let entropy = Zeroizing::new(Mnemonic::phrase_to_entropy(&phrase, lang)?); let mnemonic = Mnemonic { phrase,