Fix Windows breakage

This commit is contained in:
Tim Chevalier 2012-10-19 11:44:01 -07:00
parent 10612ee30c
commit 8492a029e8

View File

@ -481,7 +481,7 @@ pub fn tmpdir() -> Path {
#[allow(non_implicitly_copyable_typarams)]
fn lookup() -> Path {
option::get_default(
&option::or(getenv_nonempty("TMP"),
option::or(getenv_nonempty("TMP"),
option::or(getenv_nonempty("TEMP"),
option::or(getenv_nonempty("USERPROFILE"),
getenv_nonempty("WINDIR")))),