From 93683ae6da3a47f1cd0644a093cb4b1b0bee7faa Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Fri, 13 Sep 2013 07:09:32 -0700 Subject: [PATCH] std: Fix another windows problem with the unwrap_or_default rename --- src/libstd/os.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) } }