Skip to content

Commit f48a6c6

Browse files
committed
fix: clippy warnings.
1 parent 81ead3c commit f48a6c6

File tree

1 file changed

+2
-2
lines changed
  • crates/oxc_semantic/src/control_flow

1 file changed

+2
-2
lines changed

crates/oxc_semantic/src/control_flow/dot.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use oxc_syntax::node::AstNodeId;
33
use petgraph::dot::{Config, Dot};
44

55
use crate::{
6-
AstNodes, BasicBlock, BreakInstructionKind, ControlFlowGraph, EdgeType, Instruction,
6+
AstNode, AstNodes, BasicBlock, BreakInstructionKind, ControlFlowGraph, EdgeType, Instruction,
77
InstructionKind, ReturnInstructionKind,
88
};
99

@@ -129,7 +129,7 @@ impl DebugDot for Instruction {
129129
InstructionKind::Throw => "throw".to_string(),
130130
InstructionKind::Break(BreakInstructionKind::Labeled) => {
131131
let Some(AstKind::BreakStatement(BreakStatement { label: Some(label), .. })) =
132-
self.node_id.map(|id| ctx.0.get_node(id)).map(|node| node.kind())
132+
self.node_id.map(|id| ctx.0.get_node(id)).map(AstNode::kind)
133133
else {
134134
unreachable!(
135135
"Expected a label node to be associated with an labeled break instruction. {:?}", ctx.0.kind(self.node_id.unwrap())

0 commit comments

Comments
 (0)