Fix clippy warnings

This commit is contained in:
Vinzent Steinberg 2019-07-08 17:32:18 +02:00
parent 31a8154e01
commit 3853de8481
17 changed files with 18 additions and 18 deletions

View File

@ -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};

View File

@ -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};

View File

@ -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};

View File

@ -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]

View File

@ -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;

View File

@ -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;

View File

@ -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};

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;