@@ -594,7 +594,7 @@ fn includes_struct_name_in_description_with_ref_property() -> Result<()> {
594
594
}
595
595
let actual = AStruct { field : 123 } ;
596
596
597
- let result = verify_that ! ( actual, matches_pattern!( AStruct { ref get_field( ) : eq( 234 ) } ) ) ;
597
+ let result = verify_that ! ( actual, matches_pattern!( AStruct { * get_field( ) : eq( 234 ) } ) ) ;
598
598
599
599
verify_that ! (
600
600
result,
@@ -641,10 +641,8 @@ fn includes_struct_name_in_description_with_ref_property_after_field() -> Result
641
641
}
642
642
let actual = AStruct { field : 123 } ;
643
643
644
- let result = verify_that ! (
645
- actual,
646
- matches_pattern!( AStruct { field: eq( 123 ) , ref get_field( ) : eq( 234 ) } )
647
- ) ;
644
+ let result =
645
+ verify_that ! ( actual, matches_pattern!( AStruct { field: eq( 123 ) , * get_field( ) : eq( 234 ) } ) ) ;
648
646
649
647
verify_that ! (
650
648
result,
@@ -781,7 +779,7 @@ fn matches_struct_with_a_method_returning_a_reference() -> Result<()> {
781
779
782
780
let actual = AStruct { a_field : 123 } ;
783
781
784
- verify_that ! ( actual, matches_pattern!( AStruct { ref get_field_ref( ) : eq( 123 ) } ) )
782
+ verify_that ! ( actual, matches_pattern!( AStruct { * get_field_ref( ) : eq( 123 ) } ) )
785
783
}
786
784
787
785
#[ test]
@@ -799,7 +797,7 @@ fn matches_struct_with_a_method_returning_a_reference_with_trailing_comma() -> R
799
797
800
798
let actual = AStruct { a_field : 123 } ;
801
799
802
- verify_that ! ( actual, matches_pattern!( AStruct { ref get_field_ref( ) : eq( 123 ) , } ) )
800
+ verify_that ! ( actual, matches_pattern!( AStruct { * get_field_ref( ) : eq( 123 ) , } ) )
803
801
}
804
802
805
803
#[ test]
@@ -817,7 +815,7 @@ fn matches_struct_with_a_method_taking_two_parameters_ret_ref() -> Result<()> {
817
815
818
816
let actual = AStruct { a_field : 1 } ;
819
817
820
- verify_that ! ( actual, matches_pattern!( AStruct { ref get_field_ref( 2 , 3 ) : eq( 1 ) } ) )
818
+ verify_that ! ( actual, matches_pattern!( AStruct { * get_field_ref( 2 , 3 ) : eq( 1 ) } ) )
821
819
}
822
820
823
821
#[ test]
@@ -839,7 +837,7 @@ fn matches_struct_with_a_method_returning_reference_taking_enum_value_parameter(
839
837
840
838
let actual = AStruct { a_field : 1 } ;
841
839
842
- verify_that ! ( actual, matches_pattern!( AStruct { ref get_field_ref( AnEnum :: AVariant ) : eq( 1 ) } ) )
840
+ verify_that ! ( actual, matches_pattern!( AStruct { * get_field_ref( AnEnum :: AVariant ) : eq( 1 ) } ) )
843
841
}
844
842
845
843
#[ test]
@@ -857,7 +855,7 @@ fn matches_struct_with_a_method_taking_two_parameters_with_trailing_comma_ret_re
857
855
858
856
let actual = AStruct { a_field : 1 } ;
859
857
860
- verify_that ! ( actual, matches_pattern!( AStruct { ref get_field_ref( 2 , 3 , ) : eq( 1 ) } ) )
858
+ verify_that ! ( actual, matches_pattern!( AStruct { * get_field_ref( 2 , 3 , ) : eq( 1 ) } ) )
861
859
}
862
860
863
861
#[ test]
@@ -990,7 +988,7 @@ fn matches_struct_with_a_method_returning_reference_followed_by_a_field() -> Res
990
988
991
989
verify_that ! (
992
990
actual,
993
- matches_pattern!( AStruct { ref get_field_ref( ) : eq( 123 ) , another_field: eq( 234 ) } )
991
+ matches_pattern!( AStruct { * get_field_ref( ) : eq( 123 ) , another_field: eq( 234 ) } )
994
992
)
995
993
}
996
994
@@ -1013,7 +1011,7 @@ fn matches_struct_with_a_method_returning_reference_followed_by_a_field_with_tra
1013
1011
1014
1012
verify_that ! (
1015
1013
actual,
1016
- matches_pattern!( AStruct { ref get_field_ref( ) : eq( 123 ) , another_field: eq( 234 ) , } )
1014
+ matches_pattern!( AStruct { * get_field_ref( ) : eq( 123 ) , another_field: eq( 234 ) , } )
1017
1015
)
1018
1016
}
1019
1017
@@ -1035,7 +1033,7 @@ fn matches_struct_with_a_method_taking_two_parameters_ret_ref_and_field() -> Res
1035
1033
1036
1034
verify_that ! (
1037
1035
actual,
1038
- matches_pattern!( AStruct { ref get_field_ref( 2 , 3 ) : eq( 1 ) , another_field: eq( 123 ) } )
1036
+ matches_pattern!( AStruct { * get_field_ref( 2 , 3 ) : eq( 1 ) , another_field: eq( 123 ) } )
1039
1037
)
1040
1038
}
1041
1039
@@ -1061,7 +1059,7 @@ fn matches_struct_with_a_method_taking_enum_value_param_ret_ref_followed_by_fiel
1061
1059
1062
1060
verify_that ! (
1063
1061
actual,
1064
- matches_pattern!( AStruct { ref get_field_ref( AnEnum :: AVariant ) : eq( 1 ) , another_field: eq( 2 ) } )
1062
+ matches_pattern!( AStruct { * get_field_ref( AnEnum :: AVariant ) : eq( 1 ) , another_field: eq( 2 ) } )
1065
1063
)
1066
1064
}
1067
1065
@@ -1084,7 +1082,7 @@ fn matches_struct_with_a_method_taking_two_parameters_with_trailing_comma_ret_re
1084
1082
1085
1083
verify_that ! (
1086
1084
actual,
1087
- matches_pattern!( AStruct { ref get_field_ref( 2 , 3 , ) : eq( 1 ) , another_field: eq( 123 ) } )
1085
+ matches_pattern!( AStruct { * get_field_ref( 2 , 3 , ) : eq( 1 ) , another_field: eq( 123 ) } )
1088
1086
)
1089
1087
}
1090
1088
@@ -1217,7 +1215,7 @@ fn matches_struct_with_a_field_followed_by_a_method_returning_reference() -> Res
1217
1215
1218
1216
verify_that ! (
1219
1217
actual,
1220
- matches_pattern!( AStruct { another_field: eq( 234 ) , ref get_field_ref( ) : eq( 123 ) } )
1218
+ matches_pattern!( AStruct { another_field: eq( 234 ) , * get_field_ref( ) : eq( 123 ) } )
1221
1219
)
1222
1220
}
1223
1221
@@ -1240,7 +1238,7 @@ fn matches_struct_with_a_field_followed_by_a_method_returning_ref_and_trailing_c
1240
1238
1241
1239
verify_that ! (
1242
1240
actual,
1243
- matches_pattern!( AStruct { another_field: eq( 234 ) , ref get_field_ref( ) : eq( 123 ) , } )
1241
+ matches_pattern!( AStruct { another_field: eq( 234 ) , * get_field_ref( ) : eq( 123 ) , } )
1244
1242
)
1245
1243
}
1246
1244
@@ -1262,7 +1260,7 @@ fn matches_struct_with_a_field_followed_by_a_method_with_params_ret_ref() -> Res
1262
1260
1263
1261
verify_that ! (
1264
1262
actual,
1265
- matches_pattern!( AStruct { another_field: eq( 234 ) , ref get_field_ref( 2 , 3 ) : eq( 123 ) } )
1263
+ matches_pattern!( AStruct { another_field: eq( 234 ) , * get_field_ref( 2 , 3 ) : eq( 123 ) } )
1266
1264
)
1267
1265
}
1268
1266
@@ -1288,7 +1286,7 @@ fn matches_struct_with_field_followed_by_method_taking_enum_value_param_ret_ref(
1288
1286
1289
1287
verify_that ! (
1290
1288
actual,
1291
- matches_pattern!( AStruct { another_field: eq( 2 ) , ref get_field_ref( AnEnum :: AVariant ) : eq( 1 ) } )
1289
+ matches_pattern!( AStruct { another_field: eq( 2 ) , * get_field_ref( AnEnum :: AVariant ) : eq( 1 ) } )
1292
1290
)
1293
1291
}
1294
1292
@@ -1311,7 +1309,7 @@ fn matches_struct_with_a_field_followed_by_a_method_with_params_and_trailing_com
1311
1309
1312
1310
verify_that ! (
1313
1311
actual,
1314
- matches_pattern!( AStruct { another_field: eq( 234 ) , ref get_field_ref( 2 , 3 , ) : eq( 123 ) } )
1312
+ matches_pattern!( AStruct { another_field: eq( 234 ) , * get_field_ref( 2 , 3 , ) : eq( 123 ) } )
1315
1313
)
1316
1314
}
1317
1315
@@ -1479,7 +1477,7 @@ fn matches_struct_with_a_field_followed_by_a_method_ret_ref_followed_by_a_field(
1479
1477
actual,
1480
1478
matches_pattern!( AStruct {
1481
1479
another_field: eq( 234 ) ,
1482
- ref get_field_ref( ) : eq( 123 ) ,
1480
+ * get_field_ref( ) : eq( 123 ) ,
1483
1481
a_third_field: eq( 345 )
1484
1482
} )
1485
1483
)
@@ -1507,7 +1505,7 @@ fn matches_struct_with_a_field_followed_by_a_method_ret_ref_followed_by_a_field_
1507
1505
actual,
1508
1506
matches_pattern!( AStruct {
1509
1507
another_field: eq( 234 ) ,
1510
- ref get_field_ref( ) : eq( 123 ) ,
1508
+ * get_field_ref( ) : eq( 123 ) ,
1511
1509
a_third_field: eq( 345 ) ,
1512
1510
} )
1513
1511
)
@@ -1535,7 +1533,7 @@ fn matches_struct_with_a_field_followed_by_a_method_with_params_ret_ref_followed
1535
1533
actual,
1536
1534
matches_pattern!( AStruct {
1537
1535
another_field: eq( 234 ) ,
1538
- ref get_field_ref( 2 , 3 ) : eq( 123 ) ,
1536
+ * get_field_ref( 2 , 3 ) : eq( 123 ) ,
1539
1537
a_third_field: eq( 345 ) ,
1540
1538
} )
1541
1539
)
@@ -1567,7 +1565,7 @@ fn matches_struct_with_field_followed_by_method_taking_enum_value_param_ret_ref_
1567
1565
actual,
1568
1566
matches_pattern!( AStruct {
1569
1567
another_field: eq( 2 ) ,
1570
- ref get_field_ref( AnEnum :: AVariant ) : eq( 1 ) ,
1568
+ * get_field_ref( AnEnum :: AVariant ) : eq( 1 ) ,
1571
1569
a_third_field: eq( 3 ) ,
1572
1570
} )
1573
1571
)
@@ -1595,7 +1593,7 @@ fn matches_struct_with_a_field_followed_by_a_method_with_params_trailing_comma_r
1595
1593
actual,
1596
1594
matches_pattern!( AStruct {
1597
1595
another_field: eq( 234 ) ,
1598
- ref get_field_ref( 2 , 3 , ) : eq( 123 ) ,
1596
+ * get_field_ref( 2 , 3 , ) : eq( 123 ) ,
1599
1597
a_third_field: eq( 345 ) ,
1600
1598
} )
1601
1599
)
0 commit comments