Skip to content

Commit 93683ae

Browse files
committed
std: Fix another windows problem with the unwrap_or_default rename
1 parent 28eb49b commit 93683ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ pub fn tmpdir() -> Path {
620620
getenv_nonempty("TMP").or(
621621
getenv_nonempty("TEMP").or(
622622
getenv_nonempty("USERPROFILE").or(
623-
getenv_nonempty("WINDIR")))).unwrap_or_default(Path("C:\\Windows"))
623+
getenv_nonempty("WINDIR")))).unwrap_or(Path("C:\\Windows"))
624624
}
625625
}
626626

0 commit comments

Comments
 (0)