From 9502398578deb0f8b00db287187b0db0b00ee53c Mon Sep 17 00:00:00 2001 From: vil02 <65706193+vil02@users.noreply.github.com> Date: Mon, 27 Jan 2025 21:48:11 +0100 Subject: [PATCH] style: include `default_trait_access` --- 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 d77178a7b73..53bac5fe448 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,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, }