Skip to content

Commit

Permalink
fix: doctest failing
Browse files Browse the repository at this point in the history
Signed-off-by: qjerome <qjerome@rawsec.lu>
  • Loading branch information
qjerome committed Apr 29, 2024
1 parent b1231e4 commit 3917249
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions poppy/src/bloom.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


use std::io::{self, Read, Write};
use thiserror::Error;

Expand Down Expand Up @@ -189,9 +187,6 @@ impl TryFrom<Params> for BloomFilter {
///
/// let mut bf = BloomFilter::with_capacity(1042, 0.1);
///
/// bf.insert(42);
/// assert!(bf.contains(42));
///
/// bf.insert_bytes("toto");
/// assert!(bf.contains_bytes(String::from("toto")));
/// ```
Expand Down Expand Up @@ -396,8 +391,8 @@ impl BloomFilter {
/// use poppy_filters::bloom;
///
/// let mut b = bloom!(100, 0.1);
/// b.insert("hello");
/// assert!(b.contains("hello"));
/// b.insert_bytes("hello");
/// assert!(b.contains_bytes("hello"));
/// ```
///
/// # Other Example
Expand Down

0 comments on commit 3917249

Please sign in to comment.