Skip to content

Commit

Permalink
style: allow using dbg!() across rustup::test
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Oct 25, 2024
1 parent a8cab33 commit cd8356b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 6 additions & 1 deletion src/test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#![allow(clippy::box_default, clippy::print_stdout, clippy::print_stderr)]
#![allow(
clippy::box_default,
clippy::print_stdout,
clippy::print_stderr,
clippy::dbg_macro
)]
//! Test support module; public to permit use from integration tests.
pub mod mock;
Expand Down
7 changes: 2 additions & 5 deletions src/test/mock/clitools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,11 +668,8 @@ impl Config {
println!("expected.ok: true");
print_indented("expected.stdout", stdout);
print_indented("expected.stderr", stderr);
#[allow(clippy::dbg_macro)]
{
dbg!(out.stdout == stdout);
dbg!(out.stderr == stderr);
}
dbg!(out.stdout == stdout);
dbg!(out.stderr == stderr);
panic!();
}
}
Expand Down

0 comments on commit cd8356b

Please sign in to comment.