Skip to content

Commit 647fd36

Browse files
ok
1 parent 38a6395 commit 647fd36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/pgt_suppressions/src/line_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ impl LineIndex {
3838
None
3939
}
4040
})
41-
.last()
41+
.next_back()
4242
}
4343
}

crates/pgt_suppressions/src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl<'a> SuppressionsParser<'a> {
123123
None
124124
}
125125
})
126-
.last();
126+
.next_back();
127127

128128
if let Some(start_idx) = matching_start_idx {
129129
let start = self.start_suppressions_stack.remove(start_idx);

0 commit comments

Comments
 (0)