Skip to content

Commit

Permalink
One more where clause
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Aug 17, 2014
1 parent 13b9389 commit d6e5d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phf/src/lib.rs
Expand Up @@ -103,7 +103,7 @@ impl<K, V> PhfMap<K, V> where K: PhfHash+Eq {
}

impl<K, V> PhfMap<K, V> {
fn get_entry<T: PhfHash>(&self, key: &T, check: |&K| -> bool) -> Option<&(K, V)> {
fn get_entry<T>(&self, key: &T, check: |&K| -> bool) -> Option<&(K, V)> where T: PhfHash {
let (g, f1, f2) = key.phf_hash(self.key);
let (d1, d2) = self.disps[(g % (self.disps.len() as u32)) as uint];
let entry = &self.entries[(shared::displace(f1, f2, d1, d2) % (self.entries.len() as u32))
Expand Down

0 comments on commit d6e5d77

Please sign in to comment.