From 6d44b9fac9269b4decf76acac5d68e8ec9d10c58 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 11 Jan 2024 20:16:54 -0800 Subject: [PATCH] Ignore unconditional_recursion clippy lint due to false positive https://github.com/rust-lang/rust-clippy/issues/12133 warning: function cannot return without recursing --> src/map.rs:276:5 | 276 | / fn eq(&self, other: &Self) -> bool { 277 | | self.map.eq(&other.map) 278 | | } | |_____^ | note: recursive call site --> src/map.rs:277:9 | 277 | self.map.eq(&other.map) | ^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unconditional_recursion = note: `-W clippy::unconditional-recursion` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::unconditional_recursion)]` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 3cdbd3ae3..238027b6f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -316,6 +316,7 @@ clippy::needless_late_init, clippy::return_self_not_must_use, clippy::transmute_ptr_to_ptr, + clippy::unconditional_recursion, // https://github.com/rust-lang/rust-clippy/issues/12133 clippy::unnecessary_wraps )] // Ignored clippy_pedantic lints