Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
clarfonthey committed Dec 8, 2024
1 parent 6a4ed03 commit f8ba3ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/external_trait_impls/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ mod set {
where
A: Allocator;

impl<'a, 'de, T, S, A> Visitor<'de> for SeqInPlaceVisitor<'a, T, S, A>
impl<'de, T, S, A> Visitor<'de> for SeqInPlaceVisitor<'_, T, S, A>
where
T: Deserialize<'de> + Eq + Hash,
S: BuildHasher + Default,
Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
#![warn(missing_docs)]
#![warn(rust_2018_idioms)]
#![cfg_attr(feature = "nightly", warn(fuzzy_provenance_casts))]
#![cfg_attr(feature = "nightly", allow(internal_features))]
#![cfg_attr(
feature = "nightly",
allow(clippy::incompatible_msrv, internal_features)
)]

/// Default hasher for [`HashMap`] and [`HashSet`].
#[cfg(feature = "default-hasher")]
Expand Down
2 changes: 1 addition & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ where
Q: Hash + ?Sized,
S: BuildHasher,
{
hash_builder.hash_one(val)
hash_builder.hash_one(&val)
}

#[cfg(feature = "default-hasher")]
Expand Down

0 comments on commit f8ba3ea

Please sign in to comment.