Skip to content

Commit

Permalink
feat(chain): apply clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
slavik-pastushenko committed Jul 31, 2024
1 parent c3b960e commit f6400b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ name = "blockchain"
path = "src/lib.rs"

[dependencies]
chrono = "0.4.34"
chrono = "0.4.38"
rand = "0.8.5"
serde = { version = "1.0.196", features = ["derive"] }
serde_json = "1.0.113"
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.121"
sha2 = "0.10.8"
2 changes: 1 addition & 1 deletion src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl Chain {
};

// Validate if the receiver address is valid
if self.wallets.get(to).is_none() {
if !self.wallets.contains_key(to) {
return false;
}

Expand Down

0 comments on commit f6400b3

Please sign in to comment.