Skip to content

Commit

Permalink
chore(primitives): remove Fx* aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Sep 25, 2024
1 parent 5be0a31 commit 3a9fad7
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions crates/primitives/src/map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,8 @@ cfg_if! {
///
/// This is [`rustc_hash::FxBuildHasher`], unless both the "std" and "rand" features are
/// enabled, in which case it will be [`rustc_hash::FxRandomState`] for better security at
/// very little cost. If this is not preferred, consider using the `Fx*` aliases directly.
/// very little cost.
pub type FxBuildHasher = FxBuildHasherInner;

/// A [`HashMap`] using [`FxHasher`] as its hasher.
pub type FxHashMap<K, V> = HashMap<K, V, FxBuildHasher>;
/// A [`HashSet`] using [`FxHasher`] as its hasher.
pub type FxHashSet<V> = HashSet<V, FxBuildHasher>;
}
}

Expand Down Expand Up @@ -149,15 +144,6 @@ cfg_if! {
///
/// See [`IndexSet`](indexmap::IndexSet) for more information.
pub type IndexSet<V, S = DefaultHashBuilder> = indexmap::IndexSet<V, S>;

cfg_if! {
if #[cfg(feature = "map-fxhash")] {
/// An [`IndexMap`] using [`FxHasher`] as its hasher.
pub type FxIndexMap<K, V> = IndexMap<K, V, FxBuildHasher>;
/// An [`IndexSet`] using [`FxHasher`] as its hasher.
pub type FxIndexSet<V> = IndexSet<V, FxBuildHasher>;
}
}
}
}

Expand Down

0 comments on commit 3a9fad7

Please sign in to comment.