Skip to content

Commit b168c20

Browse files
committed
hir: Make sure all HirIds have corresponding HIR Nodes
1 parent 7895b98 commit b168c20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/min_ident_chars.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl Visitor<'_> for IdentVisitor<'_, '_> {
9494
cx.tcx.opt_hir_node(hir_id)
9595
} else {
9696
let owner = cx.tcx.hir_owner_nodes(hir_id.owner);
97-
owner.nodes.get(hir_id.local_id).copied().flatten().map(|p| p.node)
97+
owner.nodes.get(hir_id.local_id).copied().map(|p| p.node)
9898
};
9999
let Some(node) = node else {
100100
return;

0 commit comments

Comments
 (0)