Skip to content

Commit

Permalink
update stderr messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarcho committed Aug 14, 2021
1 parent 5e4d8b4 commit 10c0460
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/ui/manual_map_option_2.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ LL | | };
= note: `-D clippy::manual-map` implied by `-D warnings`
help: try this
|
LL | let _ = Some(0).map(|x| {
LL | let y = (String::new(), String::new());
LL | (x, y.0)
LL | });
LL ~ let _ = Some(0).map(|x| {
LL + let y = (String::new(), String::new());
LL + (x, y.0)
LL ~ });
|

error: manual implementation of `Option::map`
Expand All @@ -34,9 +34,9 @@ LL | | };
|
help: try this
|
LL | let _ = s.as_ref().map(|x| {
LL | if let Some(ref s) = s { (x.clone(), s) } else { panic!() }
LL | });
LL ~ let _ = s.as_ref().map(|x| {
LL + if let Some(ref s) = s { (x.clone(), s) } else { panic!() }
LL ~ });
|

error: aborting due to 2 previous errors
Expand Down

0 comments on commit 10c0460

Please sign in to comment.