We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e4d8b4 commit 10c0460Copy full SHA for 10c0460
tests/ui/manual_map_option_2.stderr
@@ -14,10 +14,10 @@ LL | | };
14
= note: `-D clippy::manual-map` implied by `-D warnings`
15
help: try this
16
|
17
-LL | let _ = Some(0).map(|x| {
18
-LL | let y = (String::new(), String::new());
19
-LL | (x, y.0)
20
-LL | });
+LL ~ let _ = Some(0).map(|x| {
+LL + let y = (String::new(), String::new());
+LL + (x, y.0)
+LL ~ });
21
22
23
error: manual implementation of `Option::map`
@@ -34,9 +34,9 @@ LL | | };
34
35
36
37
-LL | let _ = s.as_ref().map(|x| {
38
-LL | if let Some(ref s) = s { (x.clone(), s) } else { panic!() }
39
+LL ~ let _ = s.as_ref().map(|x| {
+LL + if let Some(ref s) = s { (x.clone(), s) } else { panic!() }
40
41
42
error: aborting due to 2 previous errors
0 commit comments