Skip to content

Commit

Permalink
Ignore manual_find clippy lint
Browse files Browse the repository at this point in the history
    warning: manual implementation of `Iterator::find`
      --> src/string.rs:41:9
       |
    41 | /         for i in 0..self.0.len() {
    42 | |             if self.0.as_encoded_bytes()[i..].starts_with(ch) {
    43 | |                 return Some(i);
    44 | |             }
    45 | |         }
    46 | |         None
       | |____________^ help: replace with an iterator: `(0..self.0.len()).find(|&i| self.0.as_encoded_bytes()[i..].starts_with(ch))`
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_find
       = note: `#[warn(clippy::manual_find)]` on by default
  • Loading branch information
dtolnay committed Apr 17, 2024
1 parent 04c5f50 commit 600b803
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
clippy::doc_markdown,
clippy::items_after_statements,
clippy::items_after_test_module, // https://github.com/rust-lang/rust-clippy/issues/10713
clippy::manual_find,
clippy::must_use_candidate,
clippy::needless_doctest_main,
clippy::too_many_lines,
Expand Down

0 comments on commit 600b803

Please sign in to comment.