From c4230ea50c4a781ce515bd0c8874b3d181a729b3 Mon Sep 17 00:00:00 2001 From: Robin Kruppe Date: Sat, 12 Dec 2015 00:10:15 +0100 Subject: dec2flt: Remove unused macro argument The argument was a remnant of an earlier, needlessly complicated implementation. --- src/libcore/num/dec2flt/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/libcore/num/dec2flt/mod.rs b/src/libcore/num/dec2flt/mod.rs index 7b01b950d63..9c0ec0f22c5 100644 --- a/src/libcore/num/dec2flt/mod.rs +++ b/src/libcore/num/dec2flt/mod.rs @@ -109,7 +109,7 @@ pub mod rawfp; pub mod parse; macro_rules! from_str_float_impl { - ($t:ty, $func:ident) => { + ($t:ty) => { #[stable(feature = "rust1", since = "1.0.0")] impl FromStr for $t { type Err = ParseFloatError; @@ -146,8 +146,8 @@ macro_rules! from_str_float_impl { } } } -from_str_float_impl!(f32, to_f32); -from_str_float_impl!(f64, to_f64); +from_str_float_impl!(f32); +from_str_float_impl!(f64); /// An error which can be returned when parsing a float. #[derive(Debug, Clone, PartialEq)] -- cgit 1.4.1-3-g733a5