fix: replace fxhash with rustc-hash

This commit is contained in:
Sam Schmeink committed 2022-12-10 03:56:48 +01:00
1 parent 1b7fe3fcde
commit 6166d4eb73
5 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -11,7 +11,7 @@ use crate::{
AttributeValue, TemplateNode,
};
use fxhash::{FxHashMap, FxHashSet};
use rustc_hash::{FxHashMap, FxHashSet};
use DynamicNode::*;
impl<'b> VirtualDom {
@@ -434,7 +434,7 @@ impl<'b> VirtualDom {
// The stack is empty upon entry.
fn diff_keyed_children(&mut self, old: &'b [VNode<'b>], new: &'b [VNode<'b>]) {
if cfg!(debug_assertions) {
let mut keys = fxhash::FxHashSet::default();
let mut keys = rustc_hash::FxHashSet::default();
let mut assert_unique_keys = |children: &'b [VNode<'b>]| {
keys.clear();
for child in children {