about summary refs log tree commit diff
path: root/src/libtest
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-17 23:45:55 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-21 15:23:54 -0700
commita568a7f9f2eb3fa3f3e049df288ef0ad32cc7881 (patch)
tree2d96b295e43de338e7e650110ba00ac2e116b519 /src/libtest
parent0791f9f406053d84dc7136c2be015a469304d7f0 (diff)
downloadrust-a568a7f9f2eb3fa3f3e049df288ef0ad32cc7881.tar.gz
rust-a568a7f9f2eb3fa3f3e049df288ef0ad32cc7881.zip
std: Bring back f32::from_str_radix as an unstable API
This API was exercised in a few tests and mirrors the `from_str_radix`
functionality of the integer types.
Diffstat (limited to 'src/libtest')
-rw-r--r--src/libtest/stats.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libtest/stats.rs b/src/libtest/stats.rs
index 341be762601..c1ba1260f67 100644
--- a/src/libtest/stats.rs
+++ b/src/libtest/stats.rs
@@ -338,14 +338,13 @@ mod tests {
 
     macro_rules! assert_approx_eq {
         ($a:expr, $b:expr) => ({
-            use std::num::Float;
             let (a, b) = (&$a, &$b);
             assert!((*a - *b).abs() < 1.0e-6,
                     "{} is not approximately equal to {}", *a, *b);
         })
     }
 
-    fn check(samples: &[f64], summ: &Summary<f64>) {
+    fn check(samples: &[f64], summ: &Summary) {
 
         let summ2 = Summary::new(samples);