File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ impl<'f> From<&'f DiffResult> for File<'f> {
111
111
for hunk in & hunks {
112
112
let mut lines = HashMap :: with_capacity ( hunk. lines . len ( ) ) ;
113
113
114
- let ( start_i, end_i) = matched_lines_indexes_for_hunk ( & matched_lines, hunk, 0 ) ;
114
+ let ( start_i, end_i) = matched_lines_indexes_for_hunk ( matched_lines, hunk, 0 ) ;
115
115
let aligned_lines = & matched_lines[ start_i..end_i] ;
116
116
matched_lines = & matched_lines[ start_i..] ;
117
117
@@ -306,7 +306,7 @@ fn add_changes_to_side<'s>(
306
306
307
307
fn matches_for_line ( matches : & [ MatchedPos ] , line_num : LineNumber ) -> Vec < & MatchedPos > {
308
308
matches
309
- . into_iter ( )
309
+ . iter ( )
310
310
. filter ( |m| m. pos . line == line_num)
311
311
. filter ( |m| m. kind . is_novel ( ) )
312
312
. collect ( )
You can’t perform that action at this time.
0 commit comments