From 2d3b601555a20d7b503f8cdd18b69dbf579c58f7 Mon Sep 17 00:00:00 2001
From: Robbert van der Helm <mail@robbertvanderhelm.nl>
Date: Sun, 24 Jul 2022 21:06:13 +0200
Subject: [PATCH] Allow comparisons in nih_assert!()

---
 src/debug.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/debug.rs b/src/debug.rs
index d9908c38..fb72db76 100644
--- a/src/debug.rs
+++ b/src/debug.rs
@@ -69,11 +69,13 @@ pub use nih_dbg;
 #[macro_export]
 macro_rules! nih_debug_assert {
     ($cond:expr $(,)?) => (
+        #[allow(clippy::neg_cmp_op_on_partial_ord)]
         if cfg!(debug_assertions) && !$cond {
             $crate::util::permit_alloc(|| $crate::log::debug!(concat!("Debug assertion failed: ", stringify!($cond))));
         }
     );
     ($cond:expr, $format:expr $(, $($args:tt)*)?) => (
+        #[allow(clippy::neg_cmp_op_on_partial_ord)]
         if cfg!(debug_assertions) && !$cond {
             $crate::util::permit_alloc(|| $crate::log::debug!(concat!("Debug assertion failed: ", stringify!($cond), ", ", $format), $($($args)*)?));
         }