We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2863a8b commit c4230eaCopy full SHA for c4230ea
src/libcore/num/dec2flt/mod.rs
@@ -109,7 +109,7 @@ pub mod rawfp;
109
pub mod parse;
110
111
macro_rules! from_str_float_impl {
112
- ($t:ty, $func:ident) => {
+ ($t:ty) => {
113
#[stable(feature = "rust1", since = "1.0.0")]
114
impl FromStr for $t {
115
type Err = ParseFloatError;
@@ -146,8 +146,8 @@ macro_rules! from_str_float_impl {
146
}
147
148
149
-from_str_float_impl!(f32, to_f32);
150
-from_str_float_impl!(f64, to_f64);
+from_str_float_impl!(f32);
+from_str_float_impl!(f64);
151
152
/// An error which can be returned when parsing a float.
153
#[derive(Debug, Clone, PartialEq)]
0 commit comments