@@ -109,7 +109,7 @@ impl<'c> OutputOkExt for &'c mut process::Command {
109109 if output. status . success ( ) {
110110 Ok ( output)
111111 } else {
112- let error = OutputError :: new ( output) . set_cmd ( format ! ( "{:?}" , self ) ) ;
112+ let error = OutputError :: new ( output) . set_cmd ( format ! ( "{self :?}" ) ) ;
113113 Err ( error)
114114 }
115115 }
@@ -266,8 +266,8 @@ enum OutputCause {
266266impl fmt:: Display for OutputCause {
267267 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
268268 match * self {
269- OutputCause :: Expected ( ref e) => write ! ( f, "{:#}" , e ) ,
270- OutputCause :: Unexpected ( ref e) => write ! ( f, "{:#}" , e ) ,
269+ OutputCause :: Expected ( ref e) => write ! ( f, "{e :#}" ) ,
270+ OutputCause :: Unexpected ( ref e) => write ! ( f, "{e :#}" ) ,
271271 }
272272 }
273273}
@@ -369,9 +369,9 @@ fn format_bytes(data: &[u8], f: &mut impl fmt::Write) -> fmt::Result {
369369 . as_bstr ( )
370370 . lines_with_terminator ( )
371371 . skip ( LINES_MAX_START + lines_omitted) ;
372- writeln ! ( f, "<{} lines total>" , lines_total ) ?;
372+ writeln ! ( f, "<{lines_total } lines total>" ) ?;
373373 write_debug_bstrs ( f, true , start_lines) ?;
374- writeln ! ( f, "<{} lines omitted>" , lines_omitted ) ?;
374+ writeln ! ( f, "<{lines_omitted } lines omitted>" ) ?;
375375 write_debug_bstrs ( f, true , end_lines)
376376 } else if BYTES_MIN_OVERFLOW <= data. len ( ) {
377377 write ! (
@@ -434,7 +434,7 @@ mod test {
434434 fn format_bytes ( ) {
435435 let mut s = String :: new ( ) ;
436436 for i in 0 ..80 {
437- s. push_str ( & format ! ( "{}\n " , i ) ) ;
437+ s. push_str ( & format ! ( "{i }\n " ) ) ;
438438 }
439439
440440 let mut buf = String :: new ( ) ;
0 commit comments