mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
Unused variable is left
This commit is contained in:
parent
cdb60c6547
commit
e13dcd26e3
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ impl LintPass for RedundantFieldNames {
|
||||||
|
|
||||||
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RedundantFieldNames {
|
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RedundantFieldNames {
|
||||||
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
|
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
|
||||||
if let ExprStruct(ref path, ref fields, _) = expr.node {
|
if let ExprStruct(_, ref fields, _) = expr.node {
|
||||||
for field in fields {
|
for field in fields {
|
||||||
let name = field.name.node;
|
let name = field.name.node;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue