Skip to content

Commit

Permalink
Ignore unconditional recursion lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromefroe committed Jan 28, 2024
1 parent 27ec1c7 commit b80a001
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ struct KeyRef<K> {

impl<K: Hash> Hash for KeyRef<K> {
fn hash<H: Hasher>(&self, state: &mut H) {
unsafe { (*self.k).hash(state) }
#[allow(clippy::unconditional_recursion)]

Check failure on line 96 in src/lib.rs

View workflow job for this annotation

GitHub Actions / ci (stable)

unknown lint: `clippy::unconditional_recursion`
unsafe {
(*self.k).hash(state)
}
}
}

Expand Down Expand Up @@ -125,6 +128,7 @@ impl<K: ?Sized + Hash> Hash for KeyWrapper<K> {

impl<K: ?Sized + PartialEq> PartialEq for KeyWrapper<K> {
fn eq(&self, other: &Self) -> bool {
#[allow(clippy::unconditional_recursion)]

Check failure on line 131 in src/lib.rs

View workflow job for this annotation

GitHub Actions / ci (stable)

unknown lint: `clippy::unconditional_recursion`
self.0.eq(&other.0)
}
}
Expand Down

0 comments on commit b80a001

Please sign in to comment.