Skip to content

Commit 4ce572d

Browse files
authored
Merge branch 'TheAlgorithms:master' into add-black_scholes_algo
2 parents cfe6205 + 4eec0b7 commit 4ce572d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ manual_assert = { level = "allow", priority = 1 }
4444
manual_let_else = { level = "allow", priority = 1 }
4545
manual_string_new = { level = "allow", priority = 1 }
4646
many_single_char_names = { level = "allow", priority = 1 }
47-
match_on_vec_items = { level = "allow", priority = 1 }
4847
match_wildcard_for_single_variants = { level = "allow", priority = 1 }
4948
missing_errors_doc = { level = "allow", priority = 1 }
5049
missing_fields_in_debug = { level = "allow", priority = 1 }
@@ -69,6 +68,7 @@ used_underscore_binding = { level = "allow", priority = 1 }
6968
ref_option = { level = "allow", priority = 1 }
7069
unnecessary_semicolon = { level = "allow", priority = 1 }
7170
ignore_without_reason = { level = "allow", priority = 1 }
71+
needless_for_each = { level = "allow", priority = 1 }
7272
# restriction-lints:
7373
absolute_paths = { level = "allow", priority = 1 }
7474
arithmetic_side_effects = { level = "allow", priority = 1 }
@@ -169,3 +169,5 @@ doc_overindented_list_items = { level = "allow", priority = 1 }
169169
# complexity-lints
170170
precedence = { level = "allow", priority = 1 }
171171
manual_div_ceil = { level = "allow", priority = 1 }
172+
# perf-lints
173+
cloned_ref_to_slice_refs = { level = "allow", priority = 1 }

src/data_structures/probabilistic/bloom_filter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pub trait BloomFilter<Item: Hash> {
2121
/// When looking for an item, we hash its value and retrieve the boolean at index `hash(item) % CAPACITY`
2222
/// If it's `false` it's absolutely sure the item isn't present
2323
/// If it's `true` the item may be present, or maybe another one produces the same hash
24+
#[allow(dead_code)]
2425
#[derive(Debug)]
2526
#[allow(dead_code)]
2627
struct BasicBloomFilter<const CAPACITY: usize> {

0 commit comments

Comments
 (0)