diff --git a/clippy_lints/src/utils/author.rs b/clippy_lints/src/utils/author.rs index 4cf52ddac92..e987b447a26 100644 --- a/clippy_lints/src/utils/author.rs +++ b/clippy_lints/src/utils/author.rs @@ -298,7 +298,7 @@ fn visit_expr(&mut self, expr: &Expr) { }, LitKind::Str(ref text, _) => { let str_pat = self.next("s"); - println!(" if let LitKind::Str(ref {}) = {}.node;", str_pat, lit_pat); + println!(" if let LitKind::Str(ref {}, _) = {}.node;", str_pat, lit_pat); println!(" if {}.as_str() == {:?}", str_pat, &*text.as_str()) }, }