std: Fix another windows problem with the unwrap_or_default rename

This commit is contained in:
Erick Tryzelaar 2013-09-13 07:09:32 -07:00
parent 28eb49bfbf
commit 93683ae6da

View File

@ -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"))
}
}