Skip to content

Commit

Permalink
style: update clippy lints for dbg!() and todo!()
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Dec 10, 2024
1 parent c9e82f8 commit e0f9a6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ unsafe_code = "forbid"
unused_allocation = "warn"

[workspace.lints.clippy]
dbg_macro = "warn"
nursery = "warn"
pedantic = "warn"
todo = "warn"

[workspace.lints.rustdoc]
broken_intra_doc_links = "warn"
Expand Down
2 changes: 2 additions & 0 deletions src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ impl Pacaptr {

#[cfg(all(test, feature = "test"))]
mod tests {
#![allow(clippy::dbg_macro)]

use std::sync::LazyLock;

use tokio::test;
Expand Down
2 changes: 1 addition & 1 deletion tests/common.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![cfg(feature = "test")]
#![allow(clippy::missing_panics_doc)]
#![allow(clippy::dbg_macro, clippy::missing_panics_doc)]

use itertools::{chain, Itertools};
pub use pacaptr_macros::test_dsl;
Expand Down

0 comments on commit e0f9a6b

Please sign in to comment.