Skip to content

Commit 75482f9

Browse files
Rickyyaahc
Ricky
andauthored
Apply suggestions from code review
updated help message for the user Co-authored-by: Jane Lusby <[email protected]>
1 parent f633ef6 commit 75482f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/map_err_ignore.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ impl<'tcx> LateLintPass<'tcx> for MapErrIgnore {
133133
cx,
134134
MAP_ERR_IGNORE,
135135
body_span,
136-
"`map_err(|_|...` ignores the original error",
136+
"`map_err(|_|...` wildcard pattern discards the original error",
137137
None,
138-
"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",
138+
"Consider storing the original error as a source in the new error, or silence this warning using an ignored identifier (`.map_err(|_foo| ...`)",
139139
);
140140
}
141141
}

0 commit comments

Comments
 (0)