From f6400b34f794c888f93387caad1002b9001f2726 Mon Sep 17 00:00:00 2001 From: Slavik Date: Wed, 31 Jul 2024 21:20:16 +0200 Subject: [PATCH] feat(chain): apply clippy --- Cargo.toml | 6 +++--- src/chain.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5239eb2..c950d2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/chain.rs b/src/chain.rs index 06a3af7..7ed8aac 100644 --- a/src/chain.rs +++ b/src/chain.rs @@ -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; }