We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
path_val
1 parent 7695573 commit 31cec27Copy full SHA for 31cec27
src/libstd/io/process.rs
@@ -1065,13 +1065,13 @@ mod tests {
1065
#[test]
1066
fn test_override_env() {
1067
use os;
1068
+ let path_val: String;
1069
let mut new_env = vec![("RUN_TEST_NEW_ENV", "123")];
1070
1071
// In some build environments (such as chrooted Nix builds), `env` can
1072
// only be found in the explicitly-provided PATH env variable, not in
1073
// default places such as /bin or /usr/bin. So we need to pass through
1074
// PATH to our sub-process.
- let path_val: String;
1075
match os::getenv("PATH") {
1076
None => {}
1077
Some(val) => {
0 commit comments