Skip to content

Commit c5ae6d4

Browse files
committed
Removing deprecation from the non stable hashsets
1 parent 511abd1 commit c5ae6d4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/bevy_utils/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ impl BuildHasher for FixedState {
8787
/// speed keyed hashing algorithm intended for use in in-memory hashmaps.
8888
///
8989
/// aHash is designed for performance and is NOT cryptographically secure.
90-
#[deprecated(note = "Will be required to use the hash library of your choice.")]
9190
pub type HashMap<K, V> = hashbrown::HashMap<K, V, BuildHasherDefault<AHasher>>;
9291

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

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

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

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

0 commit comments

Comments
 (0)