From b78cb6aac4818fb1ecc152fe629bf33c76c350f2 Mon Sep 17 00:00:00 2001 From: Piotr Idzik <65706193+vil02@users.noreply.github.com> Date: Tue, 28 Jan 2025 11:35:14 +0100 Subject: [PATCH 1/2] chore: `rand_chacha` is not needed (#866) --- Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6d3582900ba..20276dbf444 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,6 @@ authors = ["Anshul Malik "] num-bigint = { version = "0.4", optional = true } num-traits = { version = "0.2", optional = true } rand = "0.8" -rand_chacha = "0.3" nalgebra = "0.33.0" [dev-dependencies] From d154615d9d5d63a89ca9156ada2fecc4a08e6d31 Mon Sep 17 00:00:00 2001 From: Piotr Idzik <65706193+vil02@users.noreply.github.com> Date: Tue, 28 Jan 2025 11:36:46 +0100 Subject: [PATCH 2/2] style: include `default_trait_access` (#864) --- Cargo.toml | 1 - src/data_structures/probabilistic/count_min_sketch.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 20276dbf444..1d04951545e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,6 @@ cast_possible_wrap = { level = "allow", priority = 1 } cast_precision_loss = { level = "allow", priority = 1 } cast_sign_loss = { level = "allow", priority = 1 } cloned_instead_of_copied = { level = "allow", priority = 1 } -default_trait_access = { level = "allow", priority = 1 } doc_markdown = { level = "allow", priority = 1 } enum_glob_use = { level = "allow", priority = 1 } explicit_deref_methods = { level = "allow", priority = 1 } diff --git a/src/data_structures/probabilistic/count_min_sketch.rs b/src/data_structures/probabilistic/count_min_sketch.rs index 62b1ea0c909..0aec3bff577 100644 --- a/src/data_structures/probabilistic/count_min_sketch.rs +++ b/src/data_structures/probabilistic/count_min_sketch.rs @@ -109,7 +109,7 @@ impl Default let hashers = std::array::from_fn(|_| RandomState::new()); Self { - phantom: Default::default(), + phantom: std::marker::PhantomData, counts: [[0; WIDTH]; DEPTH], hashers, }