Commit 0bd6d57
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_map1 parent 799c21b commit 0bd6d57
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| |||
0 commit comments