mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 05:03:21 +00:00
Rename dummy_hir_id -> parent_hir_id
This commit is contained in:
parent
721549569c
commit
a353f0f174
1 changed files with 2 additions and 2 deletions
|
@ -97,8 +97,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Author {
|
|||
return;
|
||||
}
|
||||
prelude();
|
||||
let dummy_hir_id = cx.tcx.hir().get_parent_node(var.id);
|
||||
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), dummy_hir_id);
|
||||
let parent_hir_id = cx.tcx.hir().get_parent_node(var.id);
|
||||
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), parent_hir_id);
|
||||
done();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue