Skip to content

Commit e13dcd2

Browse files
committed
Unused variable is left
1 parent cdb60c6 commit e13dcd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/redundant_field_names.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl LintPass for RedundantFieldNames {
3636

3737
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RedundantFieldNames {
3838
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
39-
if let ExprStruct(ref path, ref fields, _) = expr.node {
39+
if let ExprStruct(_, ref fields, _) = expr.node {
4040
for field in fields {
4141
let name = field.name.node;
4242

0 commit comments

Comments
 (0)