Skip to content

Commit cd8356b

Browse files
committed
style: allow using dbg!() across rustup::test
1 parent a8cab33 commit cd8356b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/test.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
#![allow(clippy::box_default, clippy::print_stdout, clippy::print_stderr)]
1+
#![allow(
2+
clippy::box_default,
3+
clippy::print_stdout,
4+
clippy::print_stderr,
5+
clippy::dbg_macro
6+
)]
27
//! Test support module; public to permit use from integration tests.
38
49
pub mod mock;

src/test/mock/clitools.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -668,11 +668,8 @@ impl Config {
668668
println!("expected.ok: true");
669669
print_indented("expected.stdout", stdout);
670670
print_indented("expected.stderr", stderr);
671-
#[allow(clippy::dbg_macro)]
672-
{
673-
dbg!(out.stdout == stdout);
674-
dbg!(out.stderr == stderr);
675-
}
671+
dbg!(out.stdout == stdout);
672+
dbg!(out.stderr == stderr);
676673
panic!();
677674
}
678675
}

0 commit comments

Comments
 (0)