diff --git a/Cargo.toml b/Cargo.toml index 4471ce32baa9..31d2ebb8d4c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -175,6 +175,7 @@ branches_sharing_code = "warn" clear_with_drain = "warn" cloned_instead_of_copied = "warn" collection_is_never_read = "warn" +dbg_macro = "warn" derive_partial_eq_without_eq = "warn" doc_markdown = "warn" empty_line_after_doc_comments = "warn" diff --git a/clippy.toml b/clippy.toml index 862c568634e5..ab08b1132c1a 100644 --- a/clippy.toml +++ b/clippy.toml @@ -15,3 +15,4 @@ doc-valid-idents = [ "WAL", "MessagePack", ] +allow-dbg-in-tests = true diff --git a/crates/storage/db-common/src/init.rs b/crates/storage/db-common/src/init.rs index 014751733e6b..8c930b22ef81 100644 --- a/crates/storage/db-common/src/init.rs +++ b/crates/storage/db-common/src/init.rs @@ -98,7 +98,10 @@ where database_hash: block_hash, }) } - Err(e) => return Err(dbg!(e).into()), + Err(e) => { + debug!(?e); + return Err(e.into()); + } } debug!("Writing genesis block."); diff --git a/crates/transaction-pool/src/pool/pending.rs b/crates/transaction-pool/src/pool/pending.rs index 357cea489747..f4bce8c85a63 100644 --- a/crates/transaction-pool/src/pool/pending.rs +++ b/crates/transaction-pool/src/pool/pending.rs @@ -311,7 +311,6 @@ impl PendingPool { // send the new transaction to any existing pendingpool static file iterators if self.new_transaction_notifier.receiver_count() > 0 { - dbg!("notify"); let _ = self.new_transaction_notifier.send(tx.clone()); }