mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Add missing field to LitKind::Str
This commit is contained in:
parent
7a11843853
commit
5b367ed4a3
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue