Skip to content

Commit

Permalink
Merge pull request #16 from mkroening/unused_mut
Browse files Browse the repository at this point in the history
fix(build.rs): unused_mut
  • Loading branch information
mkroening authored Mar 25, 2024
2 parents d6b3faa + 1b0b2db commit 47b63d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rftrace/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ fn build_backend() {

// Enable the staticlib feature, so we can do #[cfg(feature='staticlib')] gate our code
// Pass-through interruptsafe and reexportsymbols features
let mut features = "staticlib".to_owned();
#[cfg(feature = "interruptsafe")]
features.push_str(",interruptsafe");
cmd.args(&["--features", &*features]);
cmd.arg("--features=staticlib");
if env::var_os("CARGO_FEATURE_INTERRUPTSAFE").is_some() {
cmd.arg("--features=interruptsafe");
}

// Always output color, so eventhough we are cargo-in-cargo, we get nice error messages on build fail
cmd.args(&["--color", "always"]);
Expand Down

0 comments on commit 47b63d2

Please sign in to comment.