@@ -148,7 +148,7 @@ fn format(opt: opt::Opt) -> Result<i32> {
148148
149149 // Handle any configuration overrides provided by options
150150 let config = config:: load_overrides ( config, & opt) ;
151- debug ! ( "config: {config :#?}" ) ;
151+ debug ! ( "config: {:#?}" , config ) ;
152152
153153 // Create range if provided
154154 let range = if opt. range_start . is_some ( ) || opt. range_end . is_some ( ) {
@@ -216,7 +216,7 @@ fn format(opt: opt::Opt) -> Result<i32> {
216216 match handle. write_all ( & output) {
217217 Ok ( _) => ( ) ,
218218 Err ( err) => {
219- error ! ( "could not output to stdout: {err :#}" )
219+ error ! ( "could not output to stdout: {:#}" , err )
220220 }
221221 } ;
222222 }
@@ -229,11 +229,11 @@ fn format(opt: opt::Opt) -> Result<i32> {
229229 let mut handle = stdout. lock ( ) ;
230230 match handle. write_all ( & diff) {
231231 Ok ( _) => ( ) ,
232- Err ( err) => error ! ( "{err :#}" ) ,
232+ Err ( err) => error ! ( "{:#}" , err ) ,
233233 }
234234 }
235235 } ,
236- Err ( err) => error ! ( "{err :#}" ) ,
236+ Err ( err) => error ! ( "{:#}" , err ) ,
237237 }
238238 }
239239 } ) ;
@@ -294,11 +294,11 @@ fn format(opt: opt::Opt) -> Result<i32> {
294294 std:: io:: ErrorKind :: NotFound => {
295295 error ! ( "no file or directory found matching '{:#}'" , path. display( ) )
296296 }
297- _ => error ! ( "{error :#}" ) ,
297+ _ => error ! ( "{:#}" , error ) ,
298298 } ,
299- _ => error ! ( "{err :#}" ) ,
299+ _ => error ! ( "{:#}" , err ) ,
300300 } ,
301- _ => error ! ( "{error :#}" ) ,
301+ _ => error ! ( "{:#}" , error ) ,
302302 } ,
303303 }
304304 }
@@ -355,7 +355,7 @@ fn main() {
355355 let exit_code = match format ( opt) {
356356 Ok ( code) => code,
357357 Err ( err) => {
358- error ! ( "{err :#}" ) ;
358+ error ! ( "{:#}" , err ) ;
359359 2
360360 }
361361 } ;
0 commit comments