Skip to content

Commit a175ca4

Browse files
committed
Auto merge of #4438 - lzutao:author-litstr-missing, r=phansch
Add missing field to LitKind::Str changelog: none
2 parents 7a11843 + 5b367ed commit a175ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/author.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl<'tcx> Visitor<'tcx> for PrintVisitor {
298298
},
299299
LitKind::Str(ref text, _) => {
300300
let str_pat = self.next("s");
301-
println!(" if let LitKind::Str(ref {}) = {}.node;", str_pat, lit_pat);
301+
println!(" if let LitKind::Str(ref {}, _) = {}.node;", str_pat, lit_pat);
302302
println!(" if {}.as_str() == {:?}", str_pat, &*text.as_str())
303303
},
304304
}

0 commit comments

Comments
 (0)