Skip to content

Commit

Permalink
fix: suppress new clippy warnings (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 authored Sep 12, 2024
1 parent 7015301 commit 63c4430
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ unwrap_used = { level = "allow", priority = 1 }
use_debug = { level = "allow", priority = 1 }
wildcard_enum_match_arm = { level = "allow", priority = 1 }
renamed_function_params = { level = "allow", priority = 1 }
allow_attributes_without_reason = { level = "allow", priority = 1 }
allow_attributes = { level = "allow", priority = 1 }
cfg_not_test = { level = "allow", priority = 1 }
field_scoped_visibility_modifiers = { level = "allow", priority = 1 }
# nursery-lints:
branches_sharing_code = { level = "allow", priority = 1 }
cognitive_complexity = { level = "allow", priority = 1 }
Expand All @@ -163,6 +167,7 @@ suspicious_operation_groupings = { level = "allow", priority = 1 }
use_self = { level = "allow", priority = 1 }
while_float = { level = "allow", priority = 1 }
needless_pass_by_ref_mut = { level = "allow", priority = 1 }
set_contains_or_insert = { level = "allow", priority = 1 }
# cargo-lints:
cargo_common_metadata = { level = "allow", priority = 1 }
# style-lints:
Expand Down
1 change: 1 addition & 0 deletions src/data_structures/probabilistic/bloom_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ impl<Item: Hash, const CAPACITY: usize> BloomFilter<Item> for BasicBloomFilter<C
/// We want to store `"Bloom"`. Its hash modulo `CAPACITY` is `5`. Which means we need to set `1` at the last index.
/// It can be performed by doing `000000 | 000001`
/// Meaning we can hash the item value, use a modulo to find the index, and do a binary `or` between the current number and the index
#[allow(dead_code)]
#[derive(Debug, Default)]
struct SingleBinaryBloomFilter {
fingerprint: u128, // let's use 128 bits, the equivalent of using CAPACITY=128 in the previous example
Expand Down

0 comments on commit 63c4430

Please sign in to comment.