@@ -323,7 +323,7 @@ mod test {
323323 ) ;
324324
325325 let result = ParsedField :: from_field ( & input) ;
326- assert ! ( result. is_err( ) , "Expected an error, got {:?}" , result ) ;
326+ assert ! ( result. is_err( ) , "Expected an error, got {result :?}" ) ;
327327 assert_eq ! (
328328 format!( "{}" , result. err( ) . unwrap( ) ) . trim( ) ,
329329 formatdoc! { "
@@ -345,7 +345,7 @@ mod test {
345345 } ,
346346 ) ;
347347 let result = ParsedField :: from_field ( & input) ;
348- assert ! ( result. is_err( ) , "Expected an error, got {:?}" , result ) ;
348+ assert ! ( result. is_err( ) , "Expected an error, got {result :?}" ) ;
349349 assert_eq ! (
350350 format!( "{}" , result. err( ) . unwrap( ) ) ,
351351 r#"Unknown cache_diff attribute: `unknown`. Must be one of `rename`, `display`, `ignore`"#
@@ -363,7 +363,7 @@ mod test {
363363 } ,
364364 ) ;
365365 let result = ParsedField :: from_field ( & input) ;
366- assert ! ( result. is_err( ) , "Expected an error, got {:?}" , result ) ;
366+ assert ! ( result. is_err( ) , "Expected an error, got {result :?}" ) ;
367367 assert_eq ! (
368368 format!( "{}" , result. err( ) . unwrap( ) ) ,
369369 r#"The cache_diff attribute `ignore` renders other attributes useless, remove additional attributes"#
@@ -378,7 +378,7 @@ mod test {
378378 } ,
379379 ) ;
380380 let result = ParsedField :: from_field ( & input) ;
381- assert ! ( result. is_err( ) , "Expected an error, got {:?}" , result ) ;
381+ assert ! ( result. is_err( ) , "Expected an error, got {result :?}" ) ;
382382 assert_eq ! (
383383 format!( "{}" , result. err( ) . unwrap( ) ) ,
384384 r#"The cache_diff attribute `ignore` renders other attributes useless, remove additional attributes"#
0 commit comments