Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve flat_map_option pedantic clippy lint
error: used `flat_map` where `filter_map` could be used instead --> serde_derive/src/bound.rs:52:10 | 52 | .flat_map(|field| from_field(&field.attrs)) | ^^^^^^^^ help: try: `filter_map` | note: the lint level is defined here --> serde_derive/src/lib.rs:18:22 | 18 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[deny(clippy::flat_map_option)]` implied by `#[deny(clippy::pedantic)]` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#flat_map_option error: used `flat_map` where `filter_map` could be used instead --> serde_derive/src/bound.rs:74:10 | 74 | .flat_map(|variant| from_variant(&variant.attrs)) | ^^^^^^^^ help: try: `filter_map` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#flat_map_option
- Loading branch information