diff --git a/src/lib.rs b/src/lib.rs index f3c5b3c..902ca53 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) }