File tree 1 file changed +3
-3
lines changed
crates/gitbutler-branch-actions/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ impl VirtualBranchHunk {
53
53
hunk : GitHunk ,
54
54
hash : Digest ,
55
55
mtimes : & mut MTimeCache ,
56
- locked_to : & [ HunkLock ] ,
56
+ locked_to : Box < [ HunkLock ] > ,
57
57
) -> Self {
58
58
// Get the unique branch ids (lock.branch_id) from hunk.locked_to that a hunk is locked to (if any)
59
59
let branch_deps_count = locked_to. iter ( ) . map ( |lock| lock. branch_id ) . unique ( ) . count ( ) ;
@@ -70,7 +70,7 @@ impl VirtualBranchHunk {
70
70
binary : hunk. binary ,
71
71
hash,
72
72
locked : !locked_to. is_empty ( ) ,
73
- locked_to : Some ( locked_to. into ( ) ) ,
73
+ locked_to : Some ( locked_to) ,
74
74
change_type : hunk. change_type ,
75
75
poisoned : branch_deps_count > 1 ,
76
76
}
@@ -117,7 +117,7 @@ pub(crate) fn file_hunks_from_diffs<'a>(
117
117
hunk,
118
118
hash,
119
119
& mut mtimes,
120
- locked_to,
120
+ locked_to. clone ( ) . into_boxed_slice ( ) ,
121
121
)
122
122
} )
123
123
. collect :: < Vec < _ > > ( ) ;
You can’t perform that action at this time.
0 commit comments