diff options
| author | blake2-ppc <blake2-ppc> | 2013-09-18 02:17:47 +0200 |
|---|---|---|
| committer | blake2-ppc <blake2-ppc> | 2013-09-18 04:02:42 +0200 |
| commit | b5d560a9e09498db5434ea26338a3d2bfc545eee (patch) | |
| tree | 03cdd52c33978d99ddad77c48337f1060eb8cbaf /src/compiletest | |
| parent | c135cb268355afe77d2ce0313a8d3e20a4e2fdd3 (diff) | |
std: Remove {float,f64,f32}::from_str in favor of from_str
Like issue #9209, remove float::{from_str, from_str_radix} in favor of
the two corresponding traits. The same for modules f64 and f32.
New usage is
from_str::<float>("1.2e34")
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/compiletest.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index 166638bc359..270b1097c55 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -17,7 +17,6 @@ extern mod extra; use std::os; use std::rt; -use std::f64; use extra::getopts; use extra::getopts::groups::{optopt, optflag, reqopt}; @@ -131,7 +130,7 @@ pub fn parse_config(args: ~[~str]) -> config { ratchet_noise_percent: getopts::opt_maybe_str(matches, "ratchet-noise-percent").map_move(|s| - f64::from_str(s).unwrap()), + from_str::<f64>(s).unwrap()), runtool: getopts::opt_maybe_str(matches, "runtool"), rustcflags: getopts::opt_maybe_str(matches, "rustcflags"), jit: getopts::opt_present(matches, "jit"), |
