From 5fddbb9e9c2bd9186157af3771ad4fad6c80e13e Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 13:39:47 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes (attempt 2/3) --- Cargo.lock | 1 - crates/oxc_semantic/tests/main.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 680ae0ab7fcf35..a6ccd065c26292 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1914,7 +1914,6 @@ name = "oxc_semantic" version = "0.42.0" dependencies = [ "assert-unchecked", - "indexmap", "insta", "itertools", "oxc_allocator", diff --git a/crates/oxc_semantic/tests/main.rs b/crates/oxc_semantic/tests/main.rs index aba8ea12bc8627..4de4a3e9b3bf93 100644 --- a/crates/oxc_semantic/tests/main.rs +++ b/crates/oxc_semantic/tests/main.rs @@ -46,7 +46,7 @@ fn get_scope_snapshot(semantic: &Semantic, scopes: impl Iterator .as_str(), ); result.push_str("\"symbols\": "); - let mut bindings = scope_tree.get_bindings(scope_id).into_iter().collect::>(); + let mut bindings = scope_tree.get_bindings(scope_id).iter().collect::>(); bindings.sort_unstable_by_key(|&(_, symbol_id)| symbol_id); result.push('['); bindings.iter().enumerate().for_each(|(index, (name, &symbol_id))| {