@@ -434,9 +434,9 @@ impl<'a> fmt::Display for Display<'a> {
434
434
}
435
435
if let ( true , Cfg :: Cfg ( _, Some ( feat) ) ) = ( short_longhand, sub_cfg) {
436
436
if self . 1 . is_html ( ) {
437
- write ! ( fmt, "<code>{}</code>" , feat ) ?;
437
+ write ! ( fmt, "<code>{feat }</code>" ) ?;
438
438
} else {
439
- write ! ( fmt, "`{}`" , feat ) ?;
439
+ write ! ( fmt, "`{feat }`" ) ?;
440
440
}
441
441
} else {
442
442
write_with_opt_paren ( fmt, !sub_cfg. is_all ( ) , Display ( sub_cfg, self . 1 ) ) ?;
@@ -471,9 +471,9 @@ impl<'a> fmt::Display for Display<'a> {
471
471
}
472
472
if let ( true , Cfg :: Cfg ( _, Some ( feat) ) ) = ( short_longhand, sub_cfg) {
473
473
if self . 1 . is_html ( ) {
474
- write ! ( fmt, "<code>{}</code>" , feat ) ?;
474
+ write ! ( fmt, "<code>{feat }</code>" ) ?;
475
475
} else {
476
- write ! ( fmt, "`{}`" , feat ) ?;
476
+ write ! ( fmt, "`{feat }`" ) ?;
477
477
}
478
478
} else {
479
479
write_with_opt_paren ( fmt, !sub_cfg. is_simple ( ) , Display ( sub_cfg, self . 1 ) ) ?;
@@ -551,21 +551,21 @@ impl<'a> fmt::Display for Display<'a> {
551
551
"sgx" => "SGX" ,
552
552
_ => "" ,
553
553
} ,
554
- ( sym:: target_endian, Some ( endian) ) => return write ! ( fmt, "{}-endian" , endian ) ,
555
- ( sym:: target_pointer_width, Some ( bits) ) => return write ! ( fmt, "{}-bit" , bits ) ,
554
+ ( sym:: target_endian, Some ( endian) ) => return write ! ( fmt, "{endian }-endian" ) ,
555
+ ( sym:: target_pointer_width, Some ( bits) ) => return write ! ( fmt, "{bits }-bit" ) ,
556
556
( sym:: target_feature, Some ( feat) ) => match self . 1 {
557
557
Format :: LongHtml => {
558
- return write ! ( fmt, "target feature <code>{}</code>" , feat ) ;
558
+ return write ! ( fmt, "target feature <code>{feat }</code>" ) ;
559
559
}
560
- Format :: LongPlain => return write ! ( fmt, "target feature `{}`" , feat ) ,
561
- Format :: ShortHtml => return write ! ( fmt, "<code>{}</code>" , feat ) ,
560
+ Format :: LongPlain => return write ! ( fmt, "target feature `{feat }`" ) ,
561
+ Format :: ShortHtml => return write ! ( fmt, "<code>{feat }</code>" ) ,
562
562
} ,
563
563
( sym:: feature, Some ( feat) ) => match self . 1 {
564
564
Format :: LongHtml => {
565
- return write ! ( fmt, "crate feature <code>{}</code>" , feat ) ;
565
+ return write ! ( fmt, "crate feature <code>{feat }</code>" ) ;
566
566
}
567
- Format :: LongPlain => return write ! ( fmt, "crate feature `{}`" , feat ) ,
568
- Format :: ShortHtml => return write ! ( fmt, "<code>{}</code>" , feat ) ,
567
+ Format :: LongPlain => return write ! ( fmt, "crate feature `{feat }`" ) ,
568
+ Format :: ShortHtml => return write ! ( fmt, "<code>{feat }</code>" ) ,
569
569
} ,
570
570
_ => "" ,
571
571
} ;
@@ -580,12 +580,12 @@ impl<'a> fmt::Display for Display<'a> {
580
580
Escape ( v. as_str( ) )
581
581
)
582
582
} else {
583
- write ! ( fmt, r#"`{}="{}"`"# , name , v )
583
+ write ! ( fmt, r#"`{name }="{v }"`"# )
584
584
}
585
585
} else if self . 1 . is_html ( ) {
586
586
write ! ( fmt, "<code>{}</code>" , Escape ( name. as_str( ) ) )
587
587
} else {
588
- write ! ( fmt, "`{}`" , name )
588
+ write ! ( fmt, "`{name }`" )
589
589
}
590
590
}
591
591
}
0 commit comments