Skip to content

Commit

Permalink
Update the stderr message in ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricky authored and Ricky committed Dec 3, 2020
1 parent 75482f9 commit 4bc33d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ui/map_err.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error: `map_err(|_|...` ignores the original error
error: `map_err(|_|...` wildcard pattern discards the original error
--> $DIR/map_err.rs:23:32
|
LL | println!("{:?}", x.map_err(|_| Errors::Ignored));
| ^^^
|
= note: `-D clippy::map-err-ignore` implied by `-D warnings`
= help: Consider wrapping the error in an enum variant for more error context, or using a named wildcard (`.map_err(|_ignored| ...`) to intentionally ignore the error
= help: Consider storing the original error as a source in the new error, or silence this warning using an ignored identifier (`.map_err(|_foo| ...`)

error: aborting due to previous error

0 comments on commit 4bc33d3

Please sign in to comment.