Skip to content

Commit c4230ea

Browse files
author
Robin Kruppe
committed
dec2flt: Remove unused macro argument
The argument was a remnant of an earlier, needlessly complicated implementation.
1 parent 2863a8b commit c4230ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/num/dec2flt/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub mod rawfp;
109109
pub mod parse;
110110

111111
macro_rules! from_str_float_impl {
112-
($t:ty, $func:ident) => {
112+
($t:ty) => {
113113
#[stable(feature = "rust1", since = "1.0.0")]
114114
impl FromStr for $t {
115115
type Err = ParseFloatError;
@@ -146,8 +146,8 @@ macro_rules! from_str_float_impl {
146146
}
147147
}
148148
}
149-
from_str_float_impl!(f32, to_f32);
150-
from_str_float_impl!(f64, to_f64);
149+
from_str_float_impl!(f32);
150+
from_str_float_impl!(f64);
151151

152152
/// An error which can be returned when parsing a float.
153153
#[derive(Debug, Clone, PartialEq)]

0 commit comments

Comments
 (0)