Skip to content

Commit d154615

Browse files
authored
style: include default_trait_access (#864)
1 parent b78cb6a commit d154615

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ cast_possible_wrap = { level = "allow", priority = 1 }
3131
cast_precision_loss = { level = "allow", priority = 1 }
3232
cast_sign_loss = { level = "allow", priority = 1 }
3333
cloned_instead_of_copied = { level = "allow", priority = 1 }
34-
default_trait_access = { level = "allow", priority = 1 }
3534
doc_markdown = { level = "allow", priority = 1 }
3635
enum_glob_use = { level = "allow", priority = 1 }
3736
explicit_deref_methods = { level = "allow", priority = 1 }

src/data_structures/probabilistic/count_min_sketch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl<T: Hash, const WIDTH: usize, const DEPTH: usize> Default
109109
let hashers = std::array::from_fn(|_| RandomState::new());
110110

111111
Self {
112-
phantom: Default::default(),
112+
phantom: std::marker::PhantomData,
113113
counts: [[0; WIDTH]; DEPTH],
114114
hashers,
115115
}

0 commit comments

Comments
 (0)