Skip to content

Commit 77282d9

Browse files
matthiaskrgryaahc
andauthored
Update clippy_lints/src/unwrap.rs
Co-authored-by: Jane Lusby <jlusby42@gmail.com>
1 parent a5b05ec commit 77282d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/unwrap.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ impl<'a, 'tcx> Visitor<'tcx> for UnwrappableVariablesVisitor<'a, 'tcx> {
181181
self.cx,
182182
UNNECESSARY_UNWRAP,
183183
expr.span,
184-
&format!("you checked before that `{}()` cannot fail. \
185-
Instead of checking and unwrapping, it's better to use `if let` or `match`",
184+
&format!("you checked before that `{}()` cannot fail, \
185+
instead of checking and unwrapping, it's better to use `if let` or `match`",
186186
method_name.ident.name),
187187
|diag| { diag.span_label(unwrappable.check.span, "the check is happening here"); },
188188
);

0 commit comments

Comments
 (0)