Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d154615

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

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

‎Cargo.toml‎

Lines changed: 0 additions & 1 deletion
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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /