@@ -275,8 +275,7 @@ where
275
275
let actual_count = total_actual_count - i;
276
276
if actual_count != returned_count {
277
277
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}"
280
279
) ;
281
280
282
281
return false ;
@@ -676,7 +675,7 @@ quickcheck! {
676
675
assert_eq!( perm. len( ) , k) ;
677
676
678
677
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 :?}" ) ;
680
679
681
680
// Check that all perm items are distinct
682
681
let distinct_len = {
@@ -686,7 +685,7 @@ quickcheck! {
686
685
assert_eq!( perm. len( ) , distinct_len) ;
687
686
688
687
// 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 :?}" ) ;
690
689
}
691
690
}
692
691
@@ -712,8 +711,7 @@ quickcheck! {
712
711
for next_perm in perms {
713
712
assert!(
714
713
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}"
717
715
) ;
718
716
719
717
curr_perm = next_perm;
0 commit comments