Skip to content

Commit

Permalink
Fix my own review suggestion, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejhirsz committed Nov 9, 2020
1 parent 67b5749 commit 7d807b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tiny-bip39"
version = "0.7.4"
version = "0.7.5"
authors = [
"Stephen Oliver <steve@infincia.com>",
"Maciej Hirsz <hello@maciej.codes>",
Expand Down
3 changes: 1 addition & 2 deletions src/mnemonic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ impl Mnemonic {
pub fn into_phrase(mut self) -> String {
// Create an empty string and swap values with the mnemonic's phrase.
// This allows `Mnemonic` to implement `Drop`, while still returning the phrase.
mem::replace(&mut self.phrase, String:new());
phrase
mem::replace(&mut self.phrase, String::new())
}

/// Get the original entropy value of the mnemonic phrase as a slice.
Expand Down

0 comments on commit 7d807b0

Please sign in to comment.