mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-04 13:27:38 +03:00
Ignore manual_find clippy lint
error: manual implementation of `Iterator::find` --> impl/src/prop.rs:76:5 | 76 | / for field in fields { 77 | | if field.attrs.from.is_some() { 78 | | return Some(field); 79 | | } 80 | | } 81 | | None | |________^ help: replace with an iterator: `fields.iter().find(|&field| field.attrs.from.is_some())` | = note: `-D clippy::manual-find` implied by `-D clippy::all` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_find error: manual implementation of `Iterator::find` --> impl/src/prop.rs:105:5 | 105 | / for field in fields { 106 | | if field.is_backtrace() { 107 | | return Some(field); 108 | | } 109 | | } 110 | | None | |________^ help: replace with an iterator: `fields.iter().find(|&field| field.is_backtrace())` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_find
This commit is contained in:
parent
b338fe6ac1
commit
f09771ebba
1 changed files with 1 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
clippy::blocks_in_if_conditions,
|
||||
clippy::cast_lossless,
|
||||
clippy::cast_possible_truncation,
|
||||
clippy::manual_find,
|
||||
clippy::manual_map,
|
||||
clippy::map_unwrap_or,
|
||||
clippy::needless_pass_by_value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue