Skip to content

Commit 5557459

Browse files
committed
Fix clippy lints
1 parent d1b2373 commit 5557459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/display/json.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl<'f> From<&'f DiffResult> for File<'f> {
111111
for hunk in &hunks {
112112
let mut lines = HashMap::with_capacity(hunk.lines.len());
113113

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);
115115
let aligned_lines = &matched_lines[start_i..end_i];
116116
matched_lines = &matched_lines[start_i..];
117117

@@ -306,7 +306,7 @@ fn add_changes_to_side<'s>(
306306

307307
fn matches_for_line(matches: &[MatchedPos], line_num: LineNumber) -> Vec<&MatchedPos> {
308308
matches
309-
.into_iter()
309+
.iter()
310310
.filter(|m| m.pos.line == line_num)
311311
.filter(|m| m.kind.is_novel())
312312
.collect()

0 commit comments

Comments
 (0)