Skip to content

Commit 0e14fd6

Browse files
committed
core: Fix some option-demode fallout on windows
1 parent 4a78f9b commit 0e14fd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ fn homedir() -> Option<Path> {
474474

475475
#[cfg(windows)]
476476
fn secondary() -> Option<Path> {
477-
do option::chain(getenv(~"USERPROFILE")) |p| {
477+
do option::chain(&getenv(~"USERPROFILE")) |p| {
478478
if !str::is_empty(p) {
479479
Some(Path(p))
480480
} else {

0 commit comments

Comments
 (0)