Skip to content

Commit 10c0460

Browse files
committed
update stderr messages
1 parent 5e4d8b4 commit 10c0460

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/ui/manual_map_option_2.stderr

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ LL | | };
1414
= note: `-D clippy::manual-map` implied by `-D warnings`
1515
help: 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

2323
error: manual implementation of `Option::map`
@@ -34,9 +34,9 @@ LL | | };
3434
|
3535
help: 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

4242
error: aborting due to 2 previous errors

0 commit comments

Comments
 (0)