File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1362,9 +1362,9 @@ pub trait Float {
1362
1362
}
1363
1363
1364
1364
macro_rules! from_str_float_impl {
1365
- ( $T : ident ) => {
1365
+ ( $t : ty ) => {
1366
1366
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1367
- impl FromStr for $T {
1367
+ impl FromStr for $t {
1368
1368
type Err = ParseFloatError ;
1369
1369
1370
1370
/// Converts a string in base 10 to a float.
@@ -1405,10 +1405,10 @@ from_str_float_impl!(f32);
1405
1405
from_str_float_impl ! ( f64 ) ;
1406
1406
1407
1407
macro_rules! from_str_radix_int_impl {
1408
- ( $( $T : ident ) * ) => { $(
1408
+ ( $( $t : ty ) * ) => { $(
1409
1409
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1410
1410
#[ allow( deprecated) ]
1411
- impl FromStr for $T {
1411
+ impl FromStr for $t {
1412
1412
type Err = ParseIntError ;
1413
1413
fn from_str( src: & str ) -> Result <Self , ParseIntError > {
1414
1414
from_str_radix( src, 10 )
@@ -1428,7 +1428,7 @@ trait FromStrRadixHelper: PartialOrd + Copy {
1428
1428
}
1429
1429
1430
1430
macro_rules! doit {
1431
- ( $( $t: ident ) * ) => ( $( impl FromStrRadixHelper for $t {
1431
+ ( $( $t: ty ) * ) => ( $( impl FromStrRadixHelper for $t {
1432
1432
fn min_value( ) -> Self { Self :: min_value( ) }
1433
1433
fn from_u32( u: u32 ) -> Self { u as Self }
1434
1434
fn checked_mul( & self , other: u32 ) -> Option <Self > {
You can’t perform that action at this time.
0 commit comments