Skip to content

Commit

Permalink
chore: enable dbg_macro lint (paradigmxyz#12409)
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-rise authored Nov 8, 2024
1 parent 86230d9 commit 0da914e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ doc-valid-idents = [
"WAL",
"MessagePack",
]
allow-dbg-in-tests = true
5 changes: 4 additions & 1 deletion crates/storage/db-common/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
1 change: 0 additions & 1 deletion crates/transaction-pool/src/pool/pending.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ impl<T: TransactionOrdering> PendingPool<T> {

// 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());
}

Expand Down

0 comments on commit 0da914e

Please sign in to comment.