Skip to content

Commit

Permalink
chore: allow clippy lint
Browse files Browse the repository at this point in the history
error api will be more specific later
  • Loading branch information
YeungOnion committed Aug 16, 2024
1 parent 31c5b60 commit 5c2258c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/distribution/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 5c2258c

Please sign in to comment.