replace fxhash crate with rustc-hash (#588)
This commit is contained in:
1 parent
23c48cf795
commit
e8c48d46cf
18 files changed
+22
-22
No files matched your search
@@ -104,7 +104,7 @@ use crate::{
|
||||
Attribute, TemplateAttributeValue,
|
||||
};
|
||||
use bumpalo::Bump;
|
||||
use fxhash::{FxHashMap, FxHashSet};
|
||||
use rustc_hash::{FxHashMap, FxHashSet};
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
|
||||
pub(crate) struct DiffState<'bump> {
|
||||
@@ -886,7 +886,7 @@ impl<'b> DiffState<'b> {
|
||||
// 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 {
|
||||
|
||||
@@ -276,7 +276,7 @@ pub enum DomEdit<'bump> {
|
||||
},
|
||||
}
|
||||
|
||||
use fxhash::FxHashSet;
|
||||
use rustc_hash::FxHashSet;
|
||||
use DomEdit::*;
|
||||
|
||||
impl<'a> Mutations<'a> {
|
||||
|
||||
@@ -9,7 +9,7 @@ use crate::{
|
||||
};
|
||||
use bumpalo::Bump;
|
||||
use futures_channel::mpsc::UnboundedSender;
|
||||
use fxhash::FxHashMap;
|
||||
use rustc_hash::FxHashMap;
|
||||
use slab::Slab;
|
||||
use std::{
|
||||
any::{Any, TypeId},
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
/// The maxiumum integer in JS
|
||||
pub const JS_MAX_INT: u64 = 9007199254740991;
|
||||
|
||||
use fxhash::FxHashMap;
|
||||
use rustc_hash::FxHashMap;
|
||||
use std::{cell::Cell, hash::Hash, marker::PhantomData, ops::Index};
|
||||
|
||||
use bumpalo::Bump;
|
||||
|
||||
@@ -90,8 +90,8 @@ impl<'a> Iterator for ElementIdIterator<'a> {
|
||||
mod leaky {
|
||||
use std::sync::Mutex;
|
||||
|
||||
use fxhash::FxHashSet;
|
||||
use once_cell::sync::Lazy;
|
||||
use rustc_hash::FxHashSet;
|
||||
static STATIC_CACHE: Lazy<Mutex<FxHashSet<&'static str>>> =
|
||||
Lazy::new(|| Mutex::new(FxHashSet::default()));
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ use crate::diff::DiffState;
|
||||
use crate::innerlude::*;
|
||||
use futures_channel::mpsc::{UnboundedReceiver, UnboundedSender};
|
||||
use futures_util::{future::poll_fn, StreamExt};
|
||||
use fxhash::FxHashSet;
|
||||
use indexmap::IndexSet;
|
||||
use rustc_hash::FxHashSet;
|
||||
use std::{collections::VecDeque, iter::FromIterator, task::Poll};
|
||||
|
||||
/// A virtual node system that progresses user events and diffs UI trees.
|
||||
|
||||
Reference in new issue
Block a user