core: Fix some option-demode fallout on windows
This commit is contained in:
parent
4a78f9b166
commit
0e14fd6e13
@ -474,7 +474,7 @@ fn homedir() -> Option<Path> {
|
||||
|
||||
#[cfg(windows)]
|
||||
fn secondary() -> Option<Path> {
|
||||
do option::chain(getenv(~"USERPROFILE")) |p| {
|
||||
do option::chain(&getenv(~"USERPROFILE")) |p| {
|
||||
if !str::is_empty(p) {
|
||||
Some(Path(p))
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user