Skip to content

Commit 0bd6d57

Browse files
committed
Ignore incorrect suggestion from manual_map lint
rust-lang/rust-clippy#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::<Type>()?)) 1196 | | } else { 1197 | | None 1198 | | }; | |_____________^ help: try this: `input.parse()?.map(|eq_token| (eq_token, input.parse::<Type>()?))` | = 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
1 parent 799c21b commit 0bd6d57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@
259259
clippy::eval_order_dependence,
260260
clippy::inherent_to_string,
261261
clippy::large_enum_variant,
262+
clippy::manual_map, // https://github.com/rust-lang/rust-clippy/issues/6795
262263
clippy::match_on_vec_items,
263264
clippy::missing_panics_doc,
264265
clippy::needless_doctest_main,

0 commit comments

Comments
 (0)