Fix clippy warnings
This commit is contained in:
parent
31a8154e01
commit
3853de8481
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use bencher::{Bencher, benchmark_group, benchmark_main};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use bencher::{Bencher, benchmark_group, benchmark_main};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use bencher::{Bencher, benchmark_group, benchmark_main};
|
||||
|
||||
|
@ -86,7 +86,7 @@
|
||||
//! [`Histogram10`]: ./struct.Histogram10.html
|
||||
//! [`Histogram`]: ./trait.Histogram.html
|
||||
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp))]
|
||||
|
||||
#![no_std]
|
||||
|
||||
|
@ -230,7 +230,7 @@ macro_rules! define_moments {
|
||||
let factor_coeff = -delta * over_n;
|
||||
|
||||
let prev_m = self.m;
|
||||
for p in 2..(MAX_MOMENT + 1) {
|
||||
for p in 2..=MAX_MOMENT {
|
||||
term1 *= factor1;
|
||||
term2 *= factor2;
|
||||
coeff_delta *= delta;
|
||||
@ -266,7 +266,7 @@ macro_rules! define_moments {
|
||||
let mut term_a = n_a * factor_a;
|
||||
let mut term_b = n_b * factor_b;
|
||||
let prev_m = self.m;
|
||||
for p in 2..(MAX_MOMENT + 1) {
|
||||
for p in 2..=MAX_MOMENT {
|
||||
term_a *= factor_a;
|
||||
term_b *= factor_b;
|
||||
self.m[p - 2] += other.m[p - 2] + term_a + term_b;
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use core::iter::Iterator;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp))]
|
||||
|
||||
use average::{Estimate, Min, Max, concatenate};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use core::iter::Iterator;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use core::iter::Iterator;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use core::iter::Iterator;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use core::iter::Iterator;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use core::iter::Iterator;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use average::{Estimate, Quantile};
|
||||
use quantiles::ckms::CKMS;
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use rand_distr::Distribution;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use core::iter::Iterator;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use average::assert_almost_eq;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))]
|
||||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, map_clone))]
|
||||
|
||||
use core::iter::Iterator;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user