From 5193d542f61cd6723d053dff5782d9038a027a7b Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Mon, 15 Dec 2014 06:03:00 +0200 Subject: Fix the fallout of removing feature(import_shadowing). --- src/libstd/rt/util.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libstd/rt') diff --git a/src/libstd/rt/util.rs b/src/libstd/rt/util.rs index fa527a70f83..77500ca74d0 100644 --- a/src/libstd/rt/util.rs +++ b/src/libstd/rt/util.rs @@ -20,7 +20,6 @@ use core::str; use libc::{mod, uintptr_t}; use os; -use str::{FromStr, from_str, Str}; use sync::atomic; /// Dynamically inquire about whether we're running under V. @@ -66,7 +65,7 @@ pub fn min_stack() -> uint { pub fn default_sched_threads() -> uint { match os::getenv("RUST_THREADS") { Some(nstr) => { - let opt_n: Option = FromStr::from_str(nstr.as_slice()); + let opt_n: Option = from_str(nstr.as_slice()); match opt_n { Some(n) if n > 0 => n, _ => panic!("`RUST_THREADS` is `{}`, should be a positive integer", nstr) -- cgit 1.4.1-3-g733a5