mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
std: Fix another windows problem with the unwrap_or_default rename
This commit is contained in:
parent
28eb49bfbf
commit
93683ae6da
@ -620,7 +620,7 @@ pub fn tmpdir() -> Path {
|
||||
getenv_nonempty("TMP").or(
|
||||
getenv_nonempty("TEMP").or(
|
||||
getenv_nonempty("USERPROFILE").or(
|
||||
getenv_nonempty("WINDIR")))).unwrap_or_default(Path("C:\\Windows"))
|
||||
getenv_nonempty("WINDIR")))).unwrap_or(Path("C:\\Windows"))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user