@@ -261,7 +261,7 @@ impl<Sink: TokenSink> XmlTokenizer<Sink> {
261261 self . emit_error ( Cow :: Owned ( msg) ) ;
262262 }
263263
264- debug ! ( "got character {}" , c ) ;
264+ debug ! ( "got character {c}" ) ;
265265 self . current_char . set ( c) ;
266266 Some ( c)
267267 }
@@ -286,7 +286,7 @@ impl<Sink: TokenSink> XmlTokenizer<Sink> {
286286 }
287287
288288 let d = input. pop_except_from ( set) ;
289- debug ! ( "got characters {:?}" , d ) ;
289+ debug ! ( "got characters {d :?}" ) ;
290290 match d {
291291 Some ( FromSet ( c) ) => self . get_preprocessed_char ( c, input) . map ( FromSet ) ,
292292
@@ -493,7 +493,7 @@ impl<Sink: TokenSink> XmlTokenizer<Sink> {
493493 self . process_token ( DoctypeToken ( doctype) ) ;
494494 }
495495
496- fn doctype_id ( & self , kind : DoctypeKind ) -> RefMut < Option < StrTendril > > {
496+ fn doctype_id ( & self , kind : DoctypeKind ) -> RefMut < ' _ , Option < StrTendril > > {
497497 let current_doctype = self . current_doctype . borrow_mut ( ) ;
498498 match kind {
499499 Public => RefMut :: map ( current_doctype, |d| & mut d. public_id ) ,
@@ -1148,11 +1148,11 @@ impl<Sink: TokenSink> XmlTokenizer<Sink> {
11481148 "\n {:12} total in token sink" ,
11491149 self . time_in_sink. get( )
11501150 ) ;
1151- debug ! ( "\n {:12} total in tokenizer" , total ) ;
1151+ debug ! ( "\n {total :12} total in tokenizer" ) ;
11521152
11531153 for ( k, v) in results. into_iter ( ) {
11541154 let pct = 100.0 * ( v as f64 ) / ( total as f64 ) ;
1155- debug ! ( "{:12} {:4.1}% {:?}" , v , pct , k ) ;
1155+ debug ! ( "{v :12} {pct :4.1}% {k :?}" ) ;
11561156 }
11571157 }
11581158
0 commit comments