diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-08-10 23:50:52 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-08-10 23:57:08 +0200 |
| commit | 1b46e485b28613426f7bebccc009effad50fcaf7 (patch) | |
| tree | b5ce73e807ce69605c17c479c3f02d4692ebf543 | |
| parent | c514ff0c93264e3cebd5eda9caf0b99fc8fd0daa (diff) | |
| download | rust-1b46e485b28613426f7bebccc009effad50fcaf7.tar.gz rust-1b46e485b28613426f7bebccc009effad50fcaf7.zip | |
Update clippy_lints/src/unwrap.rs
Co-authored-by: Jane Lusby <jlusby42@gmail.com>
| -rw-r--r-- | clippy_lints/src/unwrap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/unwrap.rs b/clippy_lints/src/unwrap.rs index fd755dcc790..ea4b8172c9c 100644 --- a/clippy_lints/src/unwrap.rs +++ b/clippy_lints/src/unwrap.rs @@ -181,8 +181,8 @@ impl<'a, 'tcx> Visitor<'tcx> for UnwrappableVariablesVisitor<'a, 'tcx> { self.cx, UNNECESSARY_UNWRAP, expr.span, - &format!("you checked before that `{}()` cannot fail. \ - Instead of checking and unwrapping, it's better to use `if let` or `match`", + &format!("you checked before that `{}()` cannot fail, \ + instead of checking and unwrapping, it's better to use `if let` or `match`", method_name.ident.name), |diag| { diag.span_label(unwrappable.check.span, "the check is happening here"); }, ); |
