Skip to content

Commit

Permalink
Allow unused imports in third-party tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Feb 19, 2024
1 parent 66edbb4 commit 3bc9bd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cargo-test-fuzz/tests/third_party.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ fn run_test(module_path: &str, test: &Test, no_run: bool) {
// runs. `assert_cmd::Command` would capture the output.
assert!(std::process::Command::new("cargo")
.current_dir(&subdir)
.env("RUSTFLAGS", "--allow=unused-imports")
.env("TEST_FUZZ_WRITE", "1")
.args(["test", "--package", &test.package, "--", "--nocapture"])
.status()
Expand Down

0 comments on commit 3bc9bd8

Please sign in to comment.