Skip to content

Commit a6fc23b

Browse files
committed
Touch up PR 305
1 parent fb877e3 commit a6fc23b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/rustflags.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ pub(crate) fn toml() -> toml::Value {
88
rustflags.push(lint);
99
}
1010

11-
if let Some(flags) = std::env::var("RUSTFLAGS").ok() {
12-
// TODO: could parse this properly and allowlist (or blocklist?)
13-
// certain flags. This is good enough to at least support
14-
// `cargo-llvm-cov`.
11+
if let Ok(flags) = std::env::var("RUSTFLAGS") {
12+
// TODO: could parse this properly and allowlist or blocklist certain
13+
// flags. This is good enough to at least support cargo-llvm-cov.
1514
if flags.contains("-C instrument-coverage") {
1615
rustflags.extend(["-C", "instrument-coverage"]);
1716
}

0 commit comments

Comments
 (0)