mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
style: Remove useless type parameter.
This commit is contained in:
parent
af879523ea
commit
e4bb3a102e
1 changed files with 2 additions and 5 deletions
|
@ -82,10 +82,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn may_match<E>(hashes: &AncestorHashes, bf: &BloomFilter) -> bool
|
fn may_match(hashes: &AncestorHashes, bf: &BloomFilter) -> bool {
|
||||||
where
|
|
||||||
E: Element,
|
|
||||||
{
|
|
||||||
// Check the first three hashes. Note that we can check for zero before
|
// 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
|
// 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
|
// zero the fourth will be as well. We also take care to avoid the
|
||||||
|
@ -304,7 +301,7 @@ where
|
||||||
// Use the bloom filter to fast-reject.
|
// Use the bloom filter to fast-reject.
|
||||||
if let Some(hashes) = hashes {
|
if let Some(hashes) = hashes {
|
||||||
if let Some(filter) = context.bloom_filter {
|
if let Some(filter) = context.bloom_filter {
|
||||||
if !may_match::<E>(hashes, filter) {
|
if !may_match(hashes, filter) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue