@@ -136,7 +136,7 @@ impl core::fmt::Debug for NFA {
136136 writeln ! ( f, "NFA(" ) ?;
137137 writeln ! ( f, "pattern: {}" , self . pattern) ?;
138138 for ( sid, state) in self . states . iter ( ) . enumerate ( ) {
139- writeln ! ( f, "{:07?}: {:?}" , sid , state ) ?;
139+ writeln ! ( f, "{sid :07?}: {state :?}" ) ?;
140140 }
141141 writeln ! ( f, ")" ) ?;
142142 Ok ( ( ) )
@@ -206,14 +206,14 @@ impl core::fmt::Debug for State {
206206 fn fmt ( & self , f : & mut core:: fmt:: Formatter < ' _ > ) -> core:: fmt:: Result {
207207 match * self {
208208 State :: Char { target, ch } => {
209- write ! ( f, "{:?} => {:?}" , ch , target )
209+ write ! ( f, "{ch :?} => {target :?}" )
210210 }
211211 State :: Ranges { target, ref ranges } => {
212212 for ( i, & ( start, end) ) in ranges. iter ( ) . enumerate ( ) {
213213 if i > 0 {
214214 write ! ( f, ", " ) ?;
215215 }
216- write ! ( f, "{:?}-{:?} => {:?}" , start , end , target ) ?;
216+ write ! ( f, "{start :?}-{end :?} => {target :?}" ) ?;
217217 }
218218 Ok ( ( ) )
219219 }
@@ -225,18 +225,18 @@ impl core::fmt::Debug for State {
225225 if i > 0 {
226226 write ! ( f, ", " ) ?;
227227 }
228- write ! ( f, "{:?}" , sid ) ?;
228+ write ! ( f, "{sid :?}" ) ?;
229229 }
230230 write ! ( f, ")" )
231231 }
232232 State :: Goto { target, look : None } => {
233- write ! ( f, "goto({:?})" , target )
233+ write ! ( f, "goto({target :?})" )
234234 }
235235 State :: Goto { target, look : Some ( look) } => {
236- write ! ( f, "{:?} => {:?}" , look , target )
236+ write ! ( f, "{look :?} => {target :?}" )
237237 }
238238 State :: Capture { target, slot } => {
239- write ! ( f, "capture(slot={:?}) => {:?}" , slot , target , )
239+ write ! ( f, "capture(slot={slot :?}) => {target :?}" )
240240 }
241241 State :: Fail => write ! ( f, "FAIL" ) ,
242242 State :: Match => {
0 commit comments