@@ -315,18 +315,21 @@ fn renames_by_similarity_with_limit() -> crate::Result {
315
315
0 ,
316
316
"fuzzy tracking is effectively disabled due to limit"
317
317
) ;
318
- let actual_locations: Vec < _ > = changes. iter ( ) . map ( |c| c. location ( ) ) . collect ( ) ;
318
+
319
+ use gix_diff:: index:: ChangeRef ;
320
+
321
+ let actual_locations: Vec < _ > = changes. iter ( ) . map ( ChangeRef :: location) . collect ( ) ;
319
322
assert_eq ! ( actual_locations, [ "f1" , "f1-renamed" , "f2" , "f2-renamed" ] ) ;
320
323
321
- let actual_indices: Vec < _ > = changes. iter ( ) . map ( |c| c . index ( ) ) . collect ( ) ;
324
+ let actual_indices: Vec < _ > = changes. iter ( ) . map ( ChangeRef :: index) . collect ( ) ;
322
325
assert_eq ! ( actual_indices, [ 6 , 6 , 7 , 7 ] ) ;
323
326
324
327
use gix_index:: entry:: Mode ;
325
328
326
- let actual_entry_modes: Vec < _ > = changes. iter ( ) . map ( |c| c . entry_mode ( ) ) . collect ( ) ;
329
+ let actual_entry_modes: Vec < _ > = changes. iter ( ) . map ( ChangeRef :: entry_mode) . collect ( ) ;
327
330
assert_eq ! ( actual_entry_modes, [ Mode :: FILE , Mode :: FILE , Mode :: FILE , Mode :: FILE ] ) ;
328
331
329
- let actual_ids: Vec < _ > = changes. iter ( ) . map ( |c| c . id ( ) ) . collect ( ) ;
332
+ let actual_ids: Vec < _ > = changes. iter ( ) . map ( ChangeRef :: id ) . collect ( ) ;
330
333
assert_eq ! (
331
334
actual_ids,
332
335
[
@@ -502,7 +505,7 @@ fn copies_in_entire_tree_by_similarity() -> crate::Result {
502
505
0 ,
503
506
"needs --find-copies-harder to detect rewrites here"
504
507
) ;
505
- let actual: Vec < _ > = changes. iter ( ) . map ( |c| c . location ( ) ) . collect ( ) ;
508
+ let actual: Vec < _ > = changes. iter ( ) . map ( gix_diff :: index :: ChangeRef :: location) . collect ( ) ;
506
509
assert_eq ! ( actual, [ "b" , "c6" , "c7" , "newly-added" ] ) ;
507
510
508
511
let out = out. expect ( "tracking enabled" ) ;
0 commit comments