Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
updated help message for the user

Co-authored-by: Jane Lusby <[email protected]>
  • Loading branch information
Ricky and yaahc authored Dec 3, 2020
1 parent f633ef6 commit 75482f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/map_err_ignore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ impl<'tcx> LateLintPass<'tcx> for MapErrIgnore {
cx,
MAP_ERR_IGNORE,
body_span,
"`map_err(|_|...` ignores the original error",
"`map_err(|_|...` wildcard pattern discards the original error",
None,
"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",
"Consider storing the original error as a source in the new error, or silence this warning using an ignored identifier (`.map_err(|_foo| ...`)",
);
}
}
Expand Down

0 comments on commit 75482f9

Please sign in to comment.