Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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