From 9ee8009b85a5e36e005042ff3b22923654950f46 Mon Sep 17 00:00:00 2001 From: rzvxa Date: Thu, 30 May 2024 20:48:15 +0330 Subject: [PATCH] fix: clippy warnings. --- crates/oxc_linter/src/rules/react/rules_of_hooks.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/oxc_linter/src/rules/react/rules_of_hooks.rs b/crates/oxc_linter/src/rules/react/rules_of_hooks.rs index 3065caf4d775fd..9ebfd6934eb2bc 100644 --- a/crates/oxc_linter/src/rules/react/rules_of_hooks.rs +++ b/crates/oxc_linter/src/rules/react/rules_of_hooks.rs @@ -1,4 +1,3 @@ -use itertools::{FoldWhile, Itertools}; use oxc_ast::{ ast::{ArrowFunctionExpression, Function}, AstKind, @@ -6,8 +5,7 @@ use oxc_ast::{ use oxc_macros::declare_oxc_lint; use oxc_semantic::{ petgraph::{self}, - pg::neighbors_filtered_by_edge_weight, - AstNodeId, AstNodes, BasicBlockId, EdgeType, Instruction, InstructionKind, + AstNodeId, AstNodes, }; use oxc_span::{Atom, CompactStr}; use oxc_syntax::operator::AssignmentOperator;