Skip to content

Commit

Permalink
minor clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbondi committed Nov 23, 2021
1 parent 828cccf commit 411c22d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base_layer/key_manager/src/mnemonic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ mod test {
"abandon".to_string(),
"tipico".to_string(),
];
assert_eq!(detect_language(&words2).is_err(), true);
assert!(detect_language(&words2).is_err());

// bounds check (last word is invalid)
let words3 = vec![
Expand All @@ -356,7 +356,7 @@ mod test {
"abandon".to_string(),
"topazio".to_string(),
];
assert_eq!(detect_language(&words3).is_err(), true);
assert!(detect_language(&words3).is_err());

// building up a word list: English/French + French -> French
let mut words = Vec::with_capacity(3);
Expand Down

0 comments on commit 411c22d

Please sign in to comment.