Skip to content

Commit

Permalink
use env::var_os replace env::var
Browse files Browse the repository at this point in the history
  • Loading branch information
heisen-li committed Jun 13, 2024
1 parent e7897e3 commit 1cf0b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/fingerprint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ impl LocalFingerprint {
opt.as_ref()
.and_then(|os_str| os_str.clone().into_string().ok())
})
.or_else(|| env::var(key).ok());
.or_else(|| env::var_os(key).and_then(|os_str| os_str.into_string().ok()));

LocalFingerprint::RerunIfEnvChanged { var, val }
}
Expand Down

0 comments on commit 1cf0b56

Please sign in to comment.