From 2ae5e79e81e512186188b10ef95225c311f4e623 Mon Sep 17 00:00:00 2001 From: Orion Yeung <11580988+orionyeung001@users.noreply.github.com> Date: Sat, 3 Aug 2024 09:44:12 -0500 Subject: [PATCH] chore: allow clippy lint error api will be more specific later --- src/distribution/internal.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/distribution/internal.rs b/src/distribution/internal.rs index b45b4bf7..0837dc40 100644 --- a/src/distribution/internal.rs +++ b/src/distribution/internal.rs @@ -27,6 +27,7 @@ where } let mut sum = 0.0; for &x in arr.iter() { + #[allow(clippy::if_same_then_else)] if x.is_nan() { return Err(StatsError::BadParams); } else if x.is_infinite() {