Skip to content

Commit

Permalink
dec2flt: Remove unused macro argument
Browse files Browse the repository at this point in the history
The argument was a remnant of an earlier, needlessly complicated implementation.
  • Loading branch information
Robin Kruppe committed Dec 11, 2015
1 parent 2863a8b commit c4230ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcore/num/dec2flt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)]
Expand Down

0 comments on commit c4230ea

Please sign in to comment.