@@ -111,7 +111,7 @@ fn profile_from_str(src: &str) -> Result<Profile, ()> {
111111
112112fn underscore_numeric_prefix ( src : & str ) -> String {
113113 match src. chars ( ) . next ( ) {
114- Some ( c) if c. is_numeric ( ) => format ! ( "_{}" , src ) ,
114+ Some ( c) if c. is_numeric ( ) => format ! ( "_{src}" ) ,
115115 Some ( _) | None => src. to_string ( ) ,
116116 }
117117}
@@ -323,7 +323,7 @@ trait Parse: Sized + Iterator<Item = ParseEvent> {
323323 } ,
324324
325325 ParseEvent :: Start ( ref name, ref attributes) if name == "feature" => {
326- debug ! ( "Parsing feature: {:?}" , attributes ) ;
326+ debug ! ( "Parsing feature: {attributes :?}" ) ;
327327 features. push ( Feature :: convert ( & mut self , attributes) ) ;
328328 } ,
329329
@@ -361,11 +361,11 @@ trait Parse: Sized + Iterator<Item = ParseEvent> {
361361 for remove in & feature. removes {
362362 if remove. profile == filter. profile {
363363 for enm in & remove. enums {
364- debug ! ( "Removing {}" , enm ) ;
364+ debug ! ( "Removing {enm}" ) ;
365365 desired_enums. remove ( enm) ;
366366 }
367367 for cmd in & remove. commands {
368- debug ! ( "Removing {}" , cmd ) ;
368+ debug ! ( "Removing {cmd}" ) ;
369369 desired_cmds. remove ( cmd) ;
370370 }
371371 }
@@ -464,16 +464,16 @@ trait Parse: Sized + Iterator<Item = ParseEvent> {
464464 two : & ' a str ,
465465 end : & ' a str ,
466466 ) -> ( Vec < T > , Vec < U > ) {
467- debug ! ( "consume_two: looking for {} and {} until {}" , one , two , end ) ;
467+ debug ! ( "consume_two: looking for {one } and {two } until {end}" ) ;
468468
469469 let mut ones = Vec :: new ( ) ;
470470 let mut twos = Vec :: new ( ) ;
471471
472472 loop {
473473 match self . next ( ) . unwrap ( ) {
474474 ParseEvent :: Start ( ref name, ref attributes) => {
475- debug ! ( "Found start element <{:?} {:?}>" , name , attributes ) ;
476- debug ! ( "one and two are {} and {}" , one , two ) ;
475+ debug ! ( "Found start element <{name :?} {attributes :?}>" ) ;
476+ debug ! ( "one and two are {one } and {two}" ) ;
477477
478478 let n = name. clone ( ) ;
479479
@@ -492,7 +492,7 @@ trait Parse: Sized + Iterator<Item = ParseEvent> {
492492 }
493493 } ,
494494 ParseEvent :: End ( ref name) => {
495- debug ! ( "Found end element </{:?}>" , name ) ;
495+ debug ! ( "Found end element </{name :?}>" ) ;
496496
497497 if one == name || two == name {
498498 continue ;
@@ -736,7 +736,7 @@ impl FromXml for Feature {
736736 let name = get_attribute ( a, "name" ) . unwrap ( ) ;
737737 let number = get_attribute ( a, "number" ) . unwrap ( ) ;
738738
739- debug ! ( "Found api = {}, name = {}, number = {}" , api , name , number ) ;
739+ debug ! ( "Found api = {api }, name = {name }, number = {number}" ) ;
740740
741741 let ( require, remove) = parser. consume_two ( "require" , "remove" , "feature" ) ;
742742
0 commit comments