From 0bd6d57baa589331e0306d76fae42324aa13039c Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 25 Feb 2021 20:40:41 -0800 Subject: [PATCH] Ignore incorrect suggestion from manual_map lint https://github.com/rust-lang/rust-clippy/issues/6795 error: manual implementation of `Option::map` --> src/item.rs:1194:22 | 1194 | let ty = if let Some(eq_token) = input.parse()? { | ______________________^ 1195 | | Some((eq_token, input.parse::()?)) 1196 | | } else { 1197 | | None 1198 | | }; | |_____________^ help: try this: `input.parse()?.map(|eq_token| (eq_token, input.parse::()?))` | = note: `-D clippy::manual-map` implied by `-D clippy::all` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 91f6163b1c..1a5b082b83 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -259,6 +259,7 @@ clippy::eval_order_dependence, clippy::inherent_to_string, clippy::large_enum_variant, + clippy::manual_map, // https://github.com/rust-lang/rust-clippy/issues/6795 clippy::match_on_vec_items, clippy::missing_panics_doc, clippy::needless_doctest_main,