mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Convert FnvHash{Set,Map} instances to FxHash{Set,Map}.
Bug: 1477628 Reviewed-by: heycam
This commit is contained in:
parent
0cab212052
commit
fc9df0bcf3
18 changed files with 49 additions and 44 deletions
|
@ -7,7 +7,7 @@
|
|||
//! Can go away when the stdlib gets fallible collections
|
||||
//! https://github.com/rust-lang/rfcs/pull/2116
|
||||
|
||||
use fnv;
|
||||
use fxhash;
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
pub use hashglobe::hash_map::HashMap;
|
||||
|
@ -25,7 +25,7 @@ pub mod map {
|
|||
pub use std::collections::hash_map::{Entry, Iter};
|
||||
}
|
||||
|
||||
/// Hash map that uses the FNV hasher
|
||||
pub type FnvHashMap<K, V> = HashMap<K, V, fnv::FnvBuildHasher>;
|
||||
/// Hash set that uses the FNV hasher
|
||||
pub type FnvHashSet<T> = HashSet<T, fnv::FnvBuildHasher>;
|
||||
/// Hash map that uses the Fx hasher
|
||||
pub type FxHashMap<K, V> = HashMap<K, V, fxhash::FxBuildHasher>;
|
||||
/// Hash set that uses the Fx hasher
|
||||
pub type FxHashSet<T> = HashSet<T, fxhash::FxBuildHasher>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue