File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1911,7 +1911,7 @@ impl<E: fmt::Debug + Error + 'static> Error for ParseNotNanError<E> {
1911
1911
impl < E : fmt:: Display > fmt:: Display for ParseNotNanError < E > {
1912
1912
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1913
1913
match self {
1914
- ParseNotNanError :: ParseFloatError ( e) => write ! ( f, "Parse error: {}" , e ) ,
1914
+ ParseNotNanError :: ParseFloatError ( e) => write ! ( f, "Parse error: {e}" ) ,
1915
1915
ParseNotNanError :: IsNaN => write ! ( f, "NotNan parser encounter a NaN" ) ,
1916
1916
}
1917
1917
}
@@ -2333,7 +2333,7 @@ mod impl_speedy {
2333
2333
fn read_from < R : Reader < ' a , C > > ( reader : & mut R ) -> Result < Self , C :: Error > {
2334
2334
let value: T = reader. read_value ( ) ?;
2335
2335
Self :: new ( value) . map_err ( |error| {
2336
- speedy:: Error :: custom ( std:: format!( "failed to read NotNan: {}" , error ) ) . into ( )
2336
+ speedy:: Error :: custom ( std:: format!( "failed to read NotNan: {error}" ) ) . into ( )
2337
2337
} )
2338
2338
}
2339
2339
Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ fn hash_is_good_for_whole_numbers() {
475
475
// many, but should guard against transient issues
476
476
// that will result from using RandomState
477
477
let pct_unique = set. len ( ) as f64 / limit as f64 ;
478
- assert ! ( 0.99f64 < pct_unique, "percent-unique={}" , pct_unique ) ;
478
+ assert ! ( 0.99f64 < pct_unique, "percent-unique={pct_unique}" ) ;
479
479
}
480
480
481
481
#[ test]
@@ -494,7 +494,7 @@ fn hash_is_good_for_fractional_numbers() {
494
494
// many, but should guard against transient issues
495
495
// that will result from using RandomState
496
496
let pct_unique = set. len ( ) as f64 / limit as f64 ;
497
- assert ! ( 0.99f64 < pct_unique, "percent-unique={}" , pct_unique ) ;
497
+ assert ! ( 0.99f64 < pct_unique, "percent-unique={pct_unique}" ) ;
498
498
}
499
499
500
500
#[ test]
You can’t perform that action at this time.
0 commit comments