We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28eb49b commit 93683aeCopy full SHA for 93683ae
src/libstd/os.rs
@@ -620,7 +620,7 @@ pub fn tmpdir() -> Path {
620
getenv_nonempty("TMP").or(
621
getenv_nonempty("TEMP").or(
622
getenv_nonempty("USERPROFILE").or(
623
- getenv_nonempty("WINDIR")))).unwrap_or_default(Path("C:\\Windows"))
+ getenv_nonempty("WINDIR")))).unwrap_or(Path("C:\\Windows"))
624
}
625
626
0 commit comments