From 04c7d3828742f03d2bdfe43b620bfe10f3f1e38e Mon Sep 17 00:00:00 2001 From: Yuichiro Yamashita Date: Thu, 26 Dec 2024 23:14:33 +0900 Subject: [PATCH] chore(semantic): use `assert_eq!` instead of `assert!` (`crates/oxc_semantic/src/scope.rs`) (#8128) related to https://github.com/oxc-project/oxc/pull/8124 --- crates/oxc_semantic/src/scope.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_semantic/src/scope.rs b/crates/oxc_semantic/src/scope.rs index 522351e65fe63..3edc5ff6b405f 100644 --- a/crates/oxc_semantic/src/scope.rs +++ b/crates/oxc_semantic/src/scope.rs @@ -176,7 +176,7 @@ impl ScopeTree { self.cell.with_dependent_mut(|_allocator, inner| { let reference_ids = inner.root_unresolved_references.get_mut(name).unwrap(); if reference_ids.len() == 1 { - assert!(reference_ids[0] == reference_id); + assert_eq!(reference_ids[0], reference_id); inner.root_unresolved_references.remove(name); } else { let index = reference_ids.iter().position(|&id| id == reference_id).unwrap();