File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ impl Iterator for Env {
97
97
let pos = match s[ 1 ..] . iter ( ) . position ( |& u| u == b'=' as u16 ) . map ( |p| p + 1 ) {
98
98
Some ( p) => p,
99
99
None => continue ,
100
- }
100
+ } ;
101
101
return Some ( (
102
102
OsStringExt :: from_wide ( & s[ ..pos] ) ,
103
103
OsStringExt :: from_wide ( & s[ pos+1 ..] ) ,
Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ use std::env::*;
14
14
fn main ( ) {
15
15
for ( k, v) in vars_os ( ) {
16
16
let v2 = var_os ( & k) ;
17
- // MingW seems to set some funky environment variables like
18
- // "=C:=C:\MinGW\msys\1.0\bin" and "!::=::\" that are returned
19
- // from vars() but not visible from var().
20
- assert ! ( v2. is_none( ) || v2. as_ref( ) . map( |s| & * * s) == Some ( & * v) ,
17
+ assert ! ( v2. as_ref( ) . map( |s| & * * s) == Some ( & * v) ,
21
18
"bad vars->var transition: {:?} {:?} {:?}" , k, v, v2) ;
22
19
}
23
20
}
You can’t perform that action at this time.
0 commit comments