Skip to content

Commit

Permalink
style: Remove useless type parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Dec 8, 2017
1 parent af87952 commit e4bb3a1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions components/selectors/matching.rs
Expand Up @@ -82,10 +82,7 @@ where
}

#[inline(always)]
fn may_match<E>(hashes: &AncestorHashes, bf: &BloomFilter) -> bool
where
E: Element,
{
fn may_match(hashes: &AncestorHashes, bf: &BloomFilter) -> bool {
// Check the first three hashes. Note that we can check for zero before
// masking off the high bits, since if any of the first three hashes is
// zero the fourth will be as well. We also take care to avoid the
Expand Down Expand Up @@ -304,7 +301,7 @@ where
// Use the bloom filter to fast-reject.
if let Some(hashes) = hashes {
if let Some(filter) = context.bloom_filter {
if !may_match::<E>(hashes, filter) {
if !may_match(hashes, filter) {
return false;
}
}
Expand Down

0 comments on commit e4bb3a1

Please sign in to comment.