mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
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:
parent
d54d1bcb17
commit
9eaadc6860
4 changed files with 70 additions and 18 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue