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 @@ -325,7 +325,7 @@ macro_rules! impl_f64_newtypes {
325
325
( $type: ty) => {
326
326
impl std:: fmt:: Display for $type {
327
327
fn fmt( & self , f: & mut std:: fmt:: Formatter ) -> std:: fmt:: Result {
328
- write!( f, "{}({})" , stringify! ( $type ) , self . 0 )
328
+ write!( f, "{}" , self . 0 )
329
329
}
330
330
}
331
331
Original file line number Diff line number Diff line change @@ -525,17 +525,17 @@ mod tests {
525
525
let mut output = String :: new ( ) ;
526
526
std:: fmt:: write ( & mut output, format_args ! ( "{}" , x) )
527
527
. expect ( "Error occurred while trying to write in String" ) ;
528
- assert_eq ! ( output, "Position(1) " . to_string( ) ) ;
528
+ assert_eq ! ( output, "1 " . to_string( ) ) ;
529
529
let x = Time :: from ( 1.0 ) ;
530
530
let mut output = String :: new ( ) ;
531
531
std:: fmt:: write ( & mut output, format_args ! ( "{}" , x) )
532
532
. expect ( "Error occurred while trying to write in String" ) ;
533
- assert_eq ! ( output, "Time(1) " . to_string( ) ) ;
533
+ assert_eq ! ( output, "1 " . to_string( ) ) ;
534
534
let x = Location :: from ( 1.0 ) ;
535
535
let mut output = String :: new ( ) ;
536
536
std:: fmt:: write ( & mut output, format_args ! ( "{}" , x) )
537
537
. expect ( "Error occurred while trying to write in String" ) ;
538
- assert_eq ! ( output, "Location(1) " . to_string( ) ) ;
538
+ assert_eq ! ( output, "1 " . to_string( ) ) ;
539
539
}
540
540
}
541
541
You can’t perform that action at this time.
0 commit comments