diff --git a/src/libcore/os.rs b/src/libcore/os.rs index 36e7dbe33468..1b68ffc6f38f 100644 --- a/src/libcore/os.rs +++ b/src/libcore/os.rs @@ -484,7 +484,7 @@ fn homedir() -> option { fn tmpdir() -> Path { return lookup(); - fn getenv_nonempty(v: Path) -> option { + fn getenv_nonempty(+v: Path) -> option { match getenv(v) { some(x) => if str::is_empty(x) {