Skip to content

Commit

Permalink
fix RUSTFLAGS not prepending whitespace in coverage.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
R9295 committed Oct 1, 2024
1 parent 77e7b4c commit 8a02ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/cargo-ziggy/coverage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Cover {
let cargo = env::var("CARGO").unwrap_or_else(|_| String::from("cargo"));

let mut coverage_rustflags = env::var("COVERAGE_RUSTFLAGS")
.unwrap_or_else(|_| String::from("--cfg=coverage -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"));
.unwrap_or_else(|_| String::from("--cfg=coverage -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort "));
coverage_rustflags.push_str(&env::var("RUSTFLAGS").unwrap_or_default());

// We build the runner with the appropriate flags for coverage
Expand Down

0 comments on commit 8a02ce6

Please sign in to comment.