Skip to content

Commit

Permalink
Deprecate Equiv
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Dec 3, 2014
1 parent c63c3ed commit 7339fb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,14 @@ impl<K: Eq + Hash<S>, V, S, H: Hasher<S>> HashMap<K, V, H> {
table::make_hash(&self.hasher, x)
}

#[allow(deprecated)]
fn search_equiv<'a, Sized? Q: Hash<S> + Equiv<K>>(&'a self, q: &Q)
-> Option<FullBucketImm<'a, K, V>> {
let hash = self.make_hash(q);
search_hashed(&self.table, &hash, |k| q.equiv(k)).into_option()
}

#[allow(deprecated)]
fn search_equiv_mut<'a, Sized? Q: Hash<S> + Equiv<K>>(&'a mut self, q: &Q)
-> Option<FullBucketMut<'a, K, V>> {
let hash = self.make_hash(q);
Expand Down

0 comments on commit 7339fb5

Please sign in to comment.