From 977e120edd4385b159a98a6fc2e7bf5f3d5e13a7 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 7c42b998..45e3d593 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() {