From 68c06f9d31b1d27d8323c708bd411e89bd0014ea Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 13 Feb 2015 14:56:31 +0100 Subject: [PATCH] Fix warnings in rust-task_info. --- support/rust-task_info/build.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/support/rust-task_info/build.rs b/support/rust-task_info/build.rs index 126b751ee61..e4341cdab46 100644 --- a/support/rust-task_info/build.rs +++ b/support/rust-task_info/build.rs @@ -2,13 +2,14 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#![feature(env)] #![feature(io)] use std::old_io::process::{Command, ProcessExit, StdioContainer}; -use std::os; +use std::env; fn main() { - let out_dir = os::getenv("OUT_DIR").unwrap(); + let out_dir = env::var_string("OUT_DIR").unwrap(); let result = Command::new("make") .args(&["-f", "makefile.cargo"]) .stdout(StdioContainer::InheritFd(1))