Skip to content

Commit a353f0f

Browse files
authored
Rename dummy_hir_id -> parent_hir_id
1 parent 7215495 commit a353f0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/utils/author.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Author {
9797
return;
9898
}
9999
prelude();
100-
let dummy_hir_id = cx.tcx.hir().get_parent_node(var.id);
101-
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), dummy_hir_id);
100+
let parent_hir_id = cx.tcx.hir().get_parent_node(var.id);
101+
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), parent_hir_id);
102102
done();
103103
}
104104

0 commit comments

Comments
 (0)