File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ LL | | };
1414 = note: `-D clippy::manual-map` implied by `-D warnings`
1515help: try this
1616 |
17- LL | let _ = Some(0).map(|x| {
18- LL | let y = (String::new(), String::new());
19- LL | (x, y.0)
20- LL | });
17+ LL ~ let _ = Some(0).map(|x| {
18+ LL + let y = (String::new(), String::new());
19+ LL + (x, y.0)
20+ LL ~ });
2121 |
2222
2323error: manual implementation of `Option::map`
@@ -34,9 +34,9 @@ LL | | };
3434 |
3535help: try this
3636 |
37- LL | let _ = s.as_ref().map(|x| {
38- LL | if let Some(ref s) = s { (x.clone(), s) } else { panic!() }
39- LL | });
37+ LL ~ let _ = s.as_ref().map(|x| {
38+ LL + if let Some(ref s) = s { (x.clone(), s) } else { panic!() }
39+ LL ~ });
4040 |
4141
4242error: aborting due to 2 previous errors
You can’t perform that action at this time.
0 commit comments