if_let_some_result: make lint adhere to lint message convention

This commit is contained in:
Matthias Krüger 2020-08-11 16:40:45 +02:00
parent 89591a78b8
commit 605e027fda
2 changed files with 6 additions and 6 deletions

View file

@ -61,8 +61,8 @@ impl<'tcx> LateLintPass<'tcx> for OkIfLet {
cx,
IF_LET_SOME_RESULT,
expr.span.with_hi(op.span.hi()),
"Matching on `Some` with `ok()` is redundant",
&format!("Consider matching on `Ok({})` and removing the call to `ok` instead", some_expr_string),
"matching on `Some` with `ok()` is redundant",
&format!("consider matching on `Ok({})` and removing the call to `ok` instead", some_expr_string),
sugg,
applicability,
);