File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,11 @@ walkdir = "2"
164
164
[workspace .lints .rust ]
165
165
rust_2018_idioms = " deny"
166
166
167
+ [workspace .lints .clippy ]
168
+ # `dbg!()` and `todo!()` clearly shouldn't make it to production:
169
+ dbg_macro = " warn"
170
+ todo = " warn"
171
+
167
172
[lib ]
168
173
name = " rustup"
169
174
path = " src/lib.rs"
Original file line number Diff line number Diff line change @@ -668,8 +668,11 @@ impl Config {
668
668
println ! ( "expected.ok: true" ) ;
669
669
print_indented ( "expected.stdout" , stdout) ;
670
670
print_indented ( "expected.stderr" , stderr) ;
671
- dbg ! ( out. stdout == stdout) ;
672
- dbg ! ( out. stderr == stderr) ;
671
+ #[ allow( clippy:: dbg_macro) ]
672
+ {
673
+ dbg ! ( out. stdout == stdout) ;
674
+ dbg ! ( out. stderr == stderr) ;
675
+ }
673
676
panic ! ( ) ;
674
677
}
675
678
}
You can’t perform that action at this time.
0 commit comments