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 | | };
14
14
= note: `-D clippy::manual-map` implied by `-D warnings`
15
15
help: try this
16
16
|
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 ~ });
21
21
|
22
22
23
23
error: manual implementation of `Option::map`
@@ -34,9 +34,9 @@ LL | | };
34
34
|
35
35
help: try this
36
36
|
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 ~ });
40
40
|
41
41
42
42
error: aborting due to 2 previous errors
You can’t perform that action at this time.
0 commit comments