@@ -275,8 +275,7 @@ where
275275 let actual_count = total_actual_count - i;
276276 if actual_count != returned_count {
277277 println ! (
278- "Total iterations: {} True count: {} returned count: {}" ,
279- i, actual_count, returned_count
278+ "Total iterations: {i} True count: {actual_count} returned count: {returned_count}"
280279 ) ;
281280
282281 return false ;
@@ -676,7 +675,7 @@ quickcheck! {
676675 assert_eq!( perm. len( ) , k) ;
677676
678677 let all_items_valid = perm. iter( ) . all( |p| vals. contains( p) ) ;
679- assert!( all_items_valid, "perm contains value not from input: {:?}" , perm ) ;
678+ assert!( all_items_valid, "perm contains value not from input: {perm :?}" ) ;
680679
681680 // Check that all perm items are distinct
682681 let distinct_len = {
@@ -686,7 +685,7 @@ quickcheck! {
686685 assert_eq!( perm. len( ) , distinct_len) ;
687686
688687 // Check that the perm is new
689- assert!( actual. insert( perm. clone( ) ) , "perm already encountered: {:?}" , perm ) ;
688+ assert!( actual. insert( perm. clone( ) ) , "perm already encountered: {perm :?}" ) ;
690689 }
691690 }
692691
@@ -712,8 +711,7 @@ quickcheck! {
712711 for next_perm in perms {
713712 assert!(
714713 next_perm > curr_perm,
715- "next perm isn't greater-than current; next_perm={:?} curr_perm={:?} n={}" ,
716- next_perm, curr_perm, n
714+ "next perm isn't greater-than current; next_perm={next_perm:?} curr_perm={curr_perm:?} n={n}"
717715 ) ;
718716
719717 curr_perm = next_perm;
0 commit comments