@@ -198,7 +198,7 @@ impl<'a> DisplaySet<'a> {
198198            self . format_label ( line_offset,  & annotation. label ,  stylesheet,  buffer) 
199199        }  else  { 
200200            let  id = match  & annotation. id  { 
201-                 Some ( id)  => format ! ( "[{}]" ,  id ) , 
201+                 Some ( id)  => format ! ( "[{id }]" ) , 
202202                None  => String :: new ( ) , 
203203            } ; 
204204            buffer. append ( 
@@ -290,12 +290,12 @@ impl<'a> DisplaySet<'a> {
290290            }  => { 
291291                let  lineno_color = stylesheet. line_no ( ) ; 
292292                if  anonymized_line_numbers && lineno. is_some ( )  { 
293-                     let  num = format ! ( "{:>width $} |" ,   ANONYMIZED_LINE_NUM ,  width = lineno_width ) ; 
293+                     let  num = format ! ( "{ANONYMIZED_LINE_NUM:>lineno_width $} |" ) ; 
294294                    buffer. puts ( line_offset,  0 ,  & num,  * lineno_color) ; 
295295                }  else  { 
296296                    match  lineno { 
297297                        Some ( n)  => { 
298-                             let  num = format ! ( "{:>width $} |" ,  n ,  width = lineno_width ) ; 
298+                             let  num = format ! ( "{n:>lineno_width $} |" ) ; 
299299                            buffer. puts ( line_offset,  0 ,  & num,  * lineno_color) ; 
300300                        } 
301301                        None  => { 
@@ -645,7 +645,7 @@ impl<'a> DisplaySet<'a> {
645645                            }  else  if  formatted_len != 0  { 
646646                                formatted_len += 2 ; 
647647                                let  id = match  & annotation. annotation . id  { 
648-                                     Some ( id)  => format ! ( "[{}]" ,  id ) , 
648+                                     Some ( id)  => format ! ( "[{id }]" ) , 
649649                                    None  => String :: new ( ) , 
650650                                } ; 
651651                                buffer. puts ( 
@@ -1292,10 +1292,7 @@ fn format_body(
12921292            None 
12931293        } 
12941294    } )  { 
1295-         panic ! ( 
1296-             "SourceAnnotation range `{:?}` is beyond the end of buffer `{}`" , 
1297-             bigger,  source_len
1298-         ) 
1295+         panic ! ( "SourceAnnotation range `{bigger:?}` is beyond the end of buffer `{source_len}`" ) 
12991296    } 
13001297
13011298    let  mut  body = vec ! [ ] ; 
0 commit comments