We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clippy::(dbg_macro|todo)
1 parent 62d489c commit 4678cbeCopy full SHA for 4678cbe
Cargo.toml
@@ -164,6 +164,11 @@ walkdir = "2"
164
[workspace.lints.rust]
165
rust_2018_idioms = "deny"
166
167
+[workspace.lints.clippy]
168
+# `dbg!()` and `todo!()` clearly shouldn't make it to production:
169
+dbg_macro = "warn"
170
+todo = "warn"
171
+
172
[lib]
173
name = "rustup"
174
path = "src/lib.rs"
src/test/mock/clitools.rs
@@ -668,8 +668,11 @@ impl Config {
668
println!("expected.ok: true");
669
print_indented("expected.stdout", stdout);
670
print_indented("expected.stderr", stderr);
671
- dbg!(out.stdout == stdout);
672
- dbg!(out.stderr == stderr);
+ #[allow(clippy::dbg_macro)]
+ {
673
+ dbg!(out.stdout == stdout);
674
+ dbg!(out.stderr == stderr);
675
+ }
676
panic!();
677
}
678
0 commit comments