Skip to content

Commit

Permalink
rust: Suppress clippy::float_cmp error
Browse files Browse the repository at this point in the history
  • Loading branch information
eagletmt committed Sep 5, 2021
1 parent 8e2e718 commit 6c68a31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapp/rust/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub fn t_score_int(v: i64, arr: &[i64]) -> f64 {

// ----- f64 -----

#[allow(clippy::float_cmp)]
pub fn is_all_equal_f64(arr: &[f64]) -> bool {
for &v in arr {
if arr[0] != v {
Expand Down

0 comments on commit 6c68a31

Please sign in to comment.