Skip to content

Commit

Permalink
Removing deprecation from the non stable hashsets
Browse files Browse the repository at this point in the history
  • Loading branch information
andristarr committed Feb 5, 2024
1 parent 511abd1 commit c5ae6d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/bevy_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ impl BuildHasher for FixedState {
/// speed keyed hashing algorithm intended for use in in-memory hashmaps.
///
/// aHash is designed for performance and is NOT cryptographically secure.
#[deprecated(note = "Will be required to use the hash library of your choice.")]
pub type HashMap<K, V> = hashbrown::HashMap<K, V, BuildHasherDefault<AHasher>>;

/// A stable hash map implementing aHash, a high speed keyed hashing algorithm
Expand All @@ -97,14 +96,13 @@ pub type HashMap<K, V> = hashbrown::HashMap<K, V, BuildHasherDefault<AHasher>>;
/// of insertions and deletions and not a random source.
///
/// aHash is designed for performance and is NOT cryptographically secure.
#[deprecated(note = "Will be required to use the hash library of your choice.")]
#[deprecated(note = "Will be required to use the hash library of your choice. Alias for: hashbrown::HashMap<K, V, FixedState>")]
pub type StableHashMap<K, V> = hashbrown::HashMap<K, V, FixedState>;

/// A [`HashSet`][hashbrown::HashSet] implementing aHash, a high
/// speed keyed hashing algorithm intended for use in in-memory hashmaps.
///
/// aHash is designed for performance and is NOT cryptographically secure.
#[deprecated(note = "Will be required to use the hash library of your choice.")]
pub type HashSet<K> = hashbrown::HashSet<K, BuildHasherDefault<AHasher>>;

/// A stable hash set implementing aHash, a high speed keyed hashing algorithm
Expand All @@ -114,7 +112,7 @@ pub type HashSet<K> = hashbrown::HashSet<K, BuildHasherDefault<AHasher>>;
/// of insertions and deletions and not a random source.
///
/// aHash is designed for performance and is NOT cryptographically secure.
#[deprecated(note = "Will be required to use the hash library of your choice.")]
#[deprecated(note = "Will be required to use the hash library of your choice. Alias for: hashbrown::HashMap<K, V, FixedState>")]
pub type StableHashSet<K> = hashbrown::HashSet<K, FixedState>;

/// A pre-hashed value of a specific type. Pre-hashing enables memoization of hashes that are expensive to compute.
Expand Down

0 comments on commit c5ae6d4

Please sign in to comment.