Unverified Commit 7e9f8cca authored by Luca Bruno's avatar Luca Bruno
Browse files

filter: derive Debug trait

This derives Debug for Filter, and enforces a sanity lint for missing
Debug implementations.
Signed-off-by: default avatarLuca Bruno <luca.bruno@coreos.com>
parent 75af6765
......@@ -6,6 +6,7 @@
//! This implementation is fairly standard, except that it uses atomic integers to work
//! concurrently.
use std::cmp;
......@@ -40,6 +41,7 @@ fn hash(mut x: u64) -> u64 {
/// It works by having an array of bits. Every element is hashed into a sequence of these bits. The
/// bits of the inserted elements are set to 1. When testing for membership, we simply AND the
/// bits.
pub struct Filter {
/// The bit array.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment