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"
164164[workspace .lints .rust ]
165165rust_2018_idioms = " deny"
166166
167+ [workspace .lints .clippy ]
168+ # `dbg!()` and `todo!()` clearly shouldn't make it to production:
169+ dbg_macro = " warn"
170+ todo = " warn"
171+
167172[lib ]
168173name = " rustup"
169174path = " src/lib.rs"
Original file line number Diff line number Diff line change @@ -668,8 +668,11 @@ impl Config {
668668 println ! ( "expected.ok: true" ) ;
669669 print_indented ( "expected.stdout" , stdout) ;
670670 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+ }
673676 panic ! ( ) ;
674677 }
675678 }
You can’t perform that action at this time.
0 commit comments