From 26218d589a440763971b2950b603444e23770293 Mon Sep 17 00:00:00 2001 From: Jerome Froelich Date: Sun, 28 Jan 2024 14:15:57 -0600 Subject: [PATCH] Ignore unconditional recursion lints --- src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 3cf88be..5e84c12 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -98,6 +98,10 @@ impl Hash for KeyRef { } impl PartialEq for KeyRef { + // NB: The unconditional_recursion lint was added in 1.76.0 and can be removed + // once the current stable version of Rust is 1.76.0 or higher. + #![allow(unknown_lints)] + #[allow(clippy::unconditional_recursion)] fn eq(&self, other: &KeyRef) -> bool { unsafe { (*self.k).eq(&*other.k) } } @@ -124,6 +128,10 @@ impl Hash for KeyWrapper { } impl PartialEq for KeyWrapper { + // NB: The unconditional_recursion lint was added in 1.76.0 and can be removed + // once the current stable version of Rust is 1.76.0 or higher. + #![allow(unknown_lints)] + #[allow(clippy::unconditional_recursion)] fn eq(&self, other: &Self) -> bool { self.0.eq(&other.0) }