declare_clippy_lint! {
/// **What it does:** Checks for instances of `map_err(|_| Some::Enum)`
///
- /// **Why is this bad?** This map_err throws away the original error rather than allowing the enum to bubble the original error
+ /// **Why is this bad?** This map_err throws away the original error rather than allowing the enum to contain and report the cause of the error
///
/// **Known problems:** None.
///
/// }
/// ```
pub MAP_ERR_IGNORE,
- style,
+ pedantic,
"`map_err` should not ignore the original error"
}
cx,
MAP_ERR_IGNORE,
body_span,
- "`map_else(|_|...` ignores the original error",
+ "`map_err(|_|...` ignores the original error",
None,
"Consider wrapping the error in an enum variant",
);