diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-09-13 07:09:32 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-09-13 07:09:32 -0700 |
| commit | 93683ae6da3a47f1cd0644a093cb4b1b0bee7faa (patch) | |
| tree | 713c384adad76fcd53f163bbd785858fdf4dfcfa /src/libstd | |
| parent | 28eb49bfbf7c7e4ece981bc3434e0809890304d6 (diff) | |
| download | rust-93683ae6da3a47f1cd0644a093cb4b1b0bee7faa.tar.gz rust-93683ae6da3a47f1cd0644a093cb4b1b0bee7faa.zip | |
std: Fix another windows problem with the unwrap_or_default rename
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/os.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 3a53edd1168..aeeae207204 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -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")) } } |
