Skip to content

Commit

Permalink
Auto merge of rust-lang#4438 - lzutao:author-litstr-missing, r=phansch
Browse files Browse the repository at this point in the history
Add missing field to LitKind::Str

changelog: none
  • Loading branch information
bors committed Aug 23, 2019
2 parents 7a11843 + 5b367ed commit a175ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/utils/author.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ impl<'tcx> Visitor<'tcx> for PrintVisitor {
},
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())
},
}
Expand Down

0 comments on commit a175ca4

Please sign in to comment.