File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -502,14 +502,13 @@ mod rename_tracking {
502
502
suspect,
503
503
} = Fixture :: for_worktree_path ( worktree_path. to_path_buf ( ) ) . unwrap ( ) ;
504
504
505
- let source_file_name: gix_object:: bstr:: BString = "after-rename.txt" . into ( ) ;
506
-
505
+ let source_file_name = "after-rename.txt" ;
507
506
let lines_blamed = gix_blame:: file (
508
507
& odb,
509
508
suspect,
510
509
None ,
511
510
& mut resource_cache,
512
- source_file_name. as_ref ( ) ,
511
+ source_file_name. into ( ) ,
513
512
gix_blame:: Options {
514
513
diff_algorithm : gix_diff:: blob:: Algorithm :: Histogram ,
515
514
range : BlameRanges :: default ( ) ,
@@ -523,7 +522,7 @@ mod rename_tracking {
523
522
assert_eq ! ( lines_blamed. len( ) , 3 ) ;
524
523
525
524
let git_dir = worktree_path. join ( ".git" ) ;
526
- let baseline = Baseline :: collect ( git_dir. join ( "after-rename.baseline" ) , source_file_name) . unwrap ( ) ;
525
+ let baseline = Baseline :: collect ( git_dir. join ( "after-rename.baseline" ) , source_file_name. into ( ) ) . unwrap ( ) ;
527
526
528
527
pretty_assertions:: assert_eq!( lines_blamed, baseline) ;
529
528
}
You can’t perform that action at this time.
0 commit comments