about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2013-09-13 07:09:32 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2013-09-13 07:09:32 -0700
commit93683ae6da3a47f1cd0644a093cb4b1b0bee7faa (patch)
tree713c384adad76fcd53f163bbd785858fdf4dfcfa /src/libstd
parent28eb49bfbf7c7e4ece981bc3434e0809890304d6 (diff)
downloadrust-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.rs2
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"))
     }
 }