chore: enable dbg_macro lint (#12409)

This commit is contained in:
Hai | RISE
2024-11-08 22:03:29 +07:00
committed by GitHub
parent 86230d9962
commit 0da914eaeb
4 changed files with 6 additions and 2 deletions

View File

@ -175,6 +175,7 @@ branches_sharing_code = "warn"
clear_with_drain = "warn" clear_with_drain = "warn"
cloned_instead_of_copied = "warn" cloned_instead_of_copied = "warn"
collection_is_never_read = "warn" collection_is_never_read = "warn"
dbg_macro = "warn"
derive_partial_eq_without_eq = "warn" derive_partial_eq_without_eq = "warn"
doc_markdown = "warn" doc_markdown = "warn"
empty_line_after_doc_comments = "warn" empty_line_after_doc_comments = "warn"

View File

@ -15,3 +15,4 @@ doc-valid-idents = [
"WAL", "WAL",
"MessagePack", "MessagePack",
] ]
allow-dbg-in-tests = true

View File

@ -98,7 +98,10 @@ where
database_hash: block_hash, database_hash: block_hash,
}) })
} }
Err(e) => return Err(dbg!(e).into()), Err(e) => {
debug!(?e);
return Err(e.into());
}
} }
debug!("Writing genesis block."); debug!("Writing genesis block.");

View File

@ -311,7 +311,6 @@ impl<T: TransactionOrdering> PendingPool<T> {
// send the new transaction to any existing pendingpool static file iterators // send the new transaction to any existing pendingpool static file iterators
if self.new_transaction_notifier.receiver_count() > 0 { if self.new_transaction_notifier.receiver_count() > 0 {
dbg!("notify");
let _ = self.new_transaction_notifier.send(tx.clone()); let _ = self.new_transaction_notifier.send(tx.clone());
} }