mirror of
https://github.com/openharmony/third_party_rust_indexmap.git
synced 2026-07-19 16:43:59 -04:00
Remove mention of ahash in docs
This commit is contained in:
@@ -179,8 +179,6 @@ impl<K, V, S> IndexMap<K, V, S> {
|
||||
///
|
||||
/// This function is `const`, so it
|
||||
/// can be called in `static` contexts.
|
||||
/// If you need `hash_builder` that can be made in the static context,
|
||||
/// consider [`ahash`](https://docs.rs/ahash/0.7.4/ahash/struct.RandomState.html#method.with_seeds).
|
||||
pub const fn with_hasher(hash_builder: S) -> Self {
|
||||
IndexMap {
|
||||
core: IndexMapCore::new(),
|
||||
|
||||
@@ -159,8 +159,6 @@ impl<T, S> IndexSet<T, S> {
|
||||
///
|
||||
/// This function is `const`, so it
|
||||
/// can be called in `static` contexts.
|
||||
/// If you need `hash_builder` that can be made in the static context,
|
||||
/// consider [`ahash`](https://docs.rs/ahash/0.7.4/ahash/struct.RandomState.html#method.with_seeds).
|
||||
pub const fn with_hasher(hash_builder: S) -> Self {
|
||||
IndexSet {
|
||||
map: IndexMap::with_hasher(hash_builder),
|
||||
|
||||
Reference in New Issue
Block a user