about summary refs log tree commit diff
path: root/src/libstd/num/f32.rs
diff options
context:
space:
mode:
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-11-02 20:00:34 +1100
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-11-04 00:20:37 +1100
commit251fdc877c0b2e3fdff61cbe083d1ba513f8e11b (patch)
tree5a21588fd2928d77faf44fb65a9e818d5609b923 /src/libstd/num/f32.rs
parent138b76b83a067284f25e1f8971600aaf49206816 (diff)
downloadrust-251fdc877c0b2e3fdff61cbe083d1ba513f8e11b.tar.gz
rust-251fdc877c0b2e3fdff61cbe083d1ba513f8e11b.zip
Remove unnecessary features from strconv
Diffstat (limited to 'src/libstd/num/f32.rs')
-rw-r--r--src/libstd/num/f32.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libstd/num/f32.rs b/src/libstd/num/f32.rs
index 87c28c9362c..448cb2d01fe 100644
--- a/src/libstd/num/f32.rs
+++ b/src/libstd/num/f32.rs
@@ -360,8 +360,7 @@ pub fn to_str_exp_digits(num: f32, dig: uint, upper: bool) -> String {
 /// `Some(n)` where `n` is the floating-point number represented by `[num]`.
 #[inline]
 pub fn from_str_hex(num: &str) -> Option<f32> {
-    strconv::from_str_common(num, 16u, true, true, true,
-                             strconv::ExpBin, false)
+    strconv::from_str_float(num, 16u, true, strconv::ExpBin)
 }
 
 impl FromStr for f32 {
@@ -392,8 +391,7 @@ impl FromStr for f32 {
     /// `Some(n)` where `n` is the floating-point number represented by `num`.
     #[inline]
     fn from_str(val: &str) -> Option<f32> {
-        strconv::from_str_common(val, 10u, true, true, true,
-                                 strconv::ExpDec, false)
+        strconv::from_str_float(val, 10u, true, strconv::ExpDec)
     }
 }
 
@@ -417,8 +415,7 @@ impl num::FromStrRadix for f32 {
     /// `Some(n)` where `n` is the floating-point number represented by `num`.
     #[inline]
     fn from_str_radix(val: &str, rdx: uint) -> Option<f32> {
-        strconv::from_str_common(val, rdx, true, true, false,
-                                 strconv::ExpNone, false)
+        strconv::from_str_float(val, rdx, false, strconv::ExpNone)
     }
 }