Skip to content

Commit d96c02e

Browse files
committed
Remove unused variables
1 parent e7e8a91 commit d96c02e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,21 +238,17 @@ pub fn diff(
238238
let mut line_number_actual = result.line_number_actual;
239239
let mut expected_count = 0;
240240
let mut actual_count = 0;
241-
let mut has_expected = false;
242-
let mut has_actual = false;
243241
for line in &result.lines {
244242
match line {
245243
DiffLine::Expected(_) => {
246244
expected_count += 1;
247-
has_expected = true;
248245
}
249246
DiffLine::Context(_) => {
250247
expected_count += 1;
251248
actual_count += 1;
252249
}
253250
DiffLine::Actual(_) => {
254251
actual_count += 1;
255-
has_actual = true;
256252
}
257253
DiffLine::MissingNL => {}
258254
}

0 commit comments

Comments
 (0)