From 03d38b2a57afe799b3c537c5cb566cc1c6e1684e Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Tue, 23 Apr 2024 19:34:01 +0100 Subject: [PATCH] Fix missing Dummy match arm --- .../no_side_effects_in_initialization/listener_map.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/oxc_linter/src/rules/tree_shaking/no_side_effects_in_initialization/listener_map.rs b/crates/oxc_linter/src/rules/tree_shaking/no_side_effects_in_initialization/listener_map.rs index 10f090248b4d8..b41eb577f0267 100644 --- a/crates/oxc_linter/src/rules/tree_shaking/no_side_effects_in_initialization/listener_map.rs +++ b/crates/oxc_linter/src/rules/tree_shaking/no_side_effects_in_initialization/listener_map.rs @@ -195,6 +195,7 @@ impl<'a> ListenerMap for ForStatementInit<'a> { Self::VariableDeclaration(decl) => { decl.declarations.iter().for_each(|decl| decl.report_effects(options)); } + Self::Dummy => dummy!(unreachable), } } }