From b80a001abc9b2080d9e77d99ecf7429c9a2740e6 Mon Sep 17 00:00:00 2001 From: Jerome Froelich Date: Sun, 28 Jan 2024 13:49:50 -0600 Subject: [PATCH] Ignore unconditional recursion lints --- src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3cf88be..e777577 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -93,7 +93,10 @@ struct KeyRef { impl Hash for KeyRef { fn hash(&self, state: &mut H) { - unsafe { (*self.k).hash(state) } + #[allow(clippy::unconditional_recursion)] + unsafe { + (*self.k).hash(state) + } } } @@ -125,6 +128,7 @@ impl Hash for KeyWrapper { impl PartialEq for KeyWrapper { fn eq(&self, other: &Self) -> bool { + #[allow(clippy::unconditional_recursion)] self.0.eq(&other.0) } }