Skip to content

Commit

Permalink
fix: clippy warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed May 28, 2024
1 parent 6645a16 commit 2fa52e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_semantic/src/control_flow/dot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use oxc_syntax::node::AstNodeId;
use petgraph::dot::{Config, Dot};

use crate::{
AstNodes, BasicBlock, BreakInstructionKind, ControlFlowGraph, EdgeType, Instruction,
AstNode, AstNodes, BasicBlock, BreakInstructionKind, ControlFlowGraph, EdgeType, Instruction,
InstructionKind, ReturnInstructionKind,
};

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

0 comments on commit 2fa52e3

Please sign in to comment.