style: Shutdown Servo's thread-pool in leak-checking builds, leak the atom table elsewhere.

Differential Revision: https://phabricator.services.mozilla.com/D44217
This commit is contained in:
Emilio Cobos Álvarez 2019-09-09 22:39:46 +00:00
parent d54d1bcb17
commit 9eaadc6860
4 changed files with 70 additions and 18 deletions

View file

@ -64,7 +64,7 @@ pub type BloomFilter = CountingBloomFilter<BloomStorageU8>;
/// Similarly, using a KeySize of 10 would lead to a 4% false
/// positive rate for N == 100 and to quite bad false positive
/// rates for larger N.
#[derive(Clone)]
#[derive(Clone, Default)]
pub struct CountingBloomFilter<S>
where
S: BloomStorage,
@ -79,9 +79,7 @@ where
/// Creates a new bloom filter.
#[inline]
pub fn new() -> Self {
CountingBloomFilter {
storage: Default::default(),
}
Default::default()
}
#[inline]