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:
David Tolnay 2022-07-01 19:32:26 -07:00
parent b338fe6ac1
commit f09771ebba
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -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,