From e4bb3a102e4965e7867de03d39aee83d36598e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 8 Dec 2017 02:56:02 +0100 Subject: [PATCH] style: Remove useless type parameter. --- components/selectors/matching.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/components/selectors/matching.rs b/components/selectors/matching.rs index 58dc331c7a2..9c6fee09161 100644 --- a/components/selectors/matching.rs +++ b/components/selectors/matching.rs @@ -82,10 +82,7 @@ where } #[inline(always)] -fn may_match(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 @@ -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::(hashes, filter) { + if !may_match(hashes, filter) { return false; } }