diff options
| author | Robin Kruppe <robin.kruppe@gmail.com> | 2015-12-12 00:10:15 +0100 |
|---|---|---|
| committer | Robin Kruppe <robin.kruppe@gmail.com> | 2015-12-12 00:10:15 +0100 |
| commit | c4230ea50c4a781ce515bd0c8874b3d181a729b3 (patch) | |
| tree | 37de5f60bfd5d9ce7c33eb7886ade657a35e9cf6 /src | |
| parent | 2863a8ba7a71f2ff1190fd02d2ff673521bd8a39 (diff) | |
| download | rust-c4230ea50c4a781ce515bd0c8874b3d181a729b3.tar.gz rust-c4230ea50c4a781ce515bd0c8874b3d181a729b3.zip | |
dec2flt: Remove unused macro argument
The argument was a remnant of an earlier, needlessly complicated implementation.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/num/dec2flt/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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)] |
