Skip to content

Commit

Permalink
Fix clippy::manual_find lint
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Oct 7, 2024
1 parent 95ebf58 commit b6db71e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/shape/at.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,12 +715,7 @@ impl<'a, 'b, 'c> ApplyContext<'a, 'b, 'c> {
}

fn next(&self, index: usize) -> Option<usize> {
for i in (index + 1)..self.s.end {
if !self.ignored(i) {
return Some(i);
}
}
None
((index + 1)..self.s.end).find(|&i| !self.ignored(i))
}

fn previous(&self, index: usize) -> Option<usize> {
Expand Down

0 comments on commit b6db71e

Please sign in to comment.