Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jkilpatr committed Feb 28, 2024
1 parent d2ac989 commit 6e2ea8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ pub fn eth_address_to_cosmos_address(
prefix: Option<&str>,
) -> Result<Address, AddressError> {
let prefix = prefix.unwrap_or(DEFAULT_PREFIX);
Address::from_slice(&address.as_bytes(), prefix)
Address::from_slice(address.as_bytes(), prefix)
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion src/mnemonic/language/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ mod tests {

for &(sum, lang) in &checksums {
let mut hasher = Sha256::new();
for (_idx, word) in lang.word_list().iter().enumerate() {
for word in lang.word_list().iter() {
assert!(::unicode_normalization::is_nfkd(word));
hasher.update(format!("{word}\n"));
}
Expand Down

0 comments on commit 6e2ea8b

Please sign in to comment.