@@ -315,18 +315,21 @@ fn renames_by_similarity_with_limit() -> crate::Result {
315315 0 ,
316316 "fuzzy tracking is effectively disabled due to limit"
317317 ) ;
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 ( ) ;
319322 assert_eq ! ( actual_locations, [ "f1" , "f1-renamed" , "f2" , "f2-renamed" ] ) ;
320323
321- let actual_indices: Vec < _ > = changes. iter ( ) . map ( |c| c . index ( ) ) . collect ( ) ;
324+ let actual_indices: Vec < _ > = changes. iter ( ) . map ( ChangeRef :: index) . collect ( ) ;
322325 assert_eq ! ( actual_indices, [ 6 , 6 , 7 , 7 ] ) ;
323326
324327 use gix_index:: entry:: Mode ;
325328
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 ( ) ;
327330 assert_eq ! ( actual_entry_modes, [ Mode :: FILE , Mode :: FILE , Mode :: FILE , Mode :: FILE ] ) ;
328331
329- let actual_ids: Vec < _ > = changes. iter ( ) . map ( |c| c . id ( ) ) . collect ( ) ;
332+ let actual_ids: Vec < _ > = changes. iter ( ) . map ( ChangeRef :: id ) . collect ( ) ;
330333 assert_eq ! (
331334 actual_ids,
332335 [
@@ -502,7 +505,7 @@ fn copies_in_entire_tree_by_similarity() -> crate::Result {
502505 0 ,
503506 "needs --find-copies-harder to detect rewrites here"
504507 ) ;
505- let actual: Vec < _ > = changes. iter ( ) . map ( |c| c . location ( ) ) . collect ( ) ;
508+ let actual: Vec < _ > = changes. iter ( ) . map ( gix_diff :: index :: ChangeRef :: location) . collect ( ) ;
506509 assert_eq ! ( actual, [ "b" , "c6" , "c7" , "newly-added" ] ) ;
507510
508511 let out = out. expect ( "tracking enabled" ) ;
0 commit comments