@@ -333,7 +333,7 @@ impl InitializationState {
333333 let mut ih = None ;
334334
335335 for ext in & [ "" , ".otf" ] {
336- texpath = format ! ( "{}{}" , name , ext ) ;
336+ texpath = format ! ( "{name}{ext}" ) ;
337337
338338 match io. input_open_name ( & texpath, common. status ) {
339339 OpenResult :: Ok ( h) => {
@@ -391,7 +391,7 @@ impl InitializationState {
391391
392392 let info = FontInfo {
393393 rel_url : utf8_percent_encode ( basename, CONTROLS ) . to_string ( ) ,
394- family_name : format ! ( "tdux{}" , font_num ) ,
394+ family_name : format ! ( "tdux{font_num}" ) ,
395395 family_relation : FamilyRelativeFontId :: Regular ,
396396 fd_key,
397397 size,
@@ -595,7 +595,7 @@ impl InitializationState {
595595 b. family_name = if let Some ( fname) = text. strip_prefix ( "family-name:" ) {
596596 fname. to_owned ( )
597597 } else {
598- format ! ( "tdux{}" , font_num )
598+ format ! ( "tdux{font_num}" )
599599 } ;
600600
601601 // Say that the "regular" font of the first font family definition
@@ -1083,7 +1083,7 @@ impl EmittingState {
10831083 "mfs" => {
10841084 if self . content_finished {
10851085 self . warn_finished_content (
1086- & format ! ( "manual flexible start tag {:?}" , remainder ) ,
1086+ & format ! ( "manual flexible start tag {remainder :?}" ) ,
10871087 common,
10881088 ) ;
10891089 Ok ( ( ) )
@@ -1095,7 +1095,7 @@ impl EmittingState {
10951095 "me" => {
10961096 if self . content_finished {
10971097 self . warn_finished_content (
1098- & format ! ( "manual end tag </{}>" , remainder ) ,
1098+ & format ! ( "manual end tag </{remainder }>" ) ,
10991099 common,
11001100 ) ;
11011101 } else {
@@ -1484,7 +1484,7 @@ impl EmittingState {
14841484 common : & mut Common ,
14851485 ) -> Result < ( ) > {
14861486 if self . content_finished {
1487- self . warn_finished_content ( & format ! ( "text `{}`" , text ) , common) ;
1487+ self . warn_finished_content ( & format ! ( "text `{text }`" ) , common) ;
14881488 return Ok ( ( ) ) ;
14891489 }
14901490
@@ -1609,7 +1609,7 @@ impl EmittingState {
16091609 self . current_content . push ( ' ' ) ;
16101610 }
16111611
1612- write ! ( self . current_content, "<span style=\" {}\" >" , font_sel ) . unwrap ( ) ;
1612+ write ! ( self . current_content, "<span style=\" {font_sel }\" >" ) . unwrap ( ) ;
16131613 html_escape:: encode_text_to_string ( ch_as_str, & mut self . current_content ) ;
16141614 write ! ( self . current_content, "</span>" ) . unwrap ( ) ;
16151615 } else {
@@ -2108,7 +2108,7 @@ struct FontInfo {
21082108impl FontInfo {
21092109 fn selection_style_text ( & self , alternate_map_index : Option < usize > ) -> String {
21102110 let alt_text = alternate_map_index
2111- . map ( |i| format ! ( "vg{}" , i ) )
2111+ . map ( |i| format ! ( "vg{i}" ) )
21122112 . unwrap_or_default ( ) ;
21132113
21142114 let extra = match self . family_relation {
@@ -2124,7 +2124,7 @@ impl FontInfo {
21242124
21252125 fn font_face_text ( & self , alternate_map_index : Option < usize > ) -> String {
21262126 let alt_text = alternate_map_index
2127- . map ( |i| format ! ( "vg{}" , i ) )
2127+ . map ( |i| format ! ( "vg{i}" ) )
21282128 . unwrap_or_default ( ) ;
21292129
21302130 let extra = match self . family_relation {
0 commit comments