Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ walkdir = "2"
[workspace.lints.rust]
rust_2018_idioms = "deny"

[workspace.lints.clippy]
# `dbg!()` and `todo!()` clearly shouldn't make it to production:
dbg_macro = "warn"
todo = "warn"

[lib]
name = "rustup"
path = "src/lib.rs"
Expand Down
7 changes: 5 additions & 2 deletions src/test/mock/clitools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,11 @@ impl Config {
println!("expected.ok: true");
print_indented("expected.stdout", stdout);
print_indented("expected.stderr", stderr);
dbg!(out.stdout == stdout);
dbg!(out.stderr == stderr);
#[allow(clippy::dbg_macro)]
{
dbg!(out.stdout == stdout);
dbg!(out.stderr == stderr);
}
panic!();
}
}
Expand Down
Loading