From 20521ac22c9ae7f00da4e9b81ea00353475c7071 Mon Sep 17 00:00:00 2001 From: Vinzent Steinberg Date: Tue, 30 May 2017 10:54:14 +0200 Subject: [PATCH] Disable some noisy clippy warnings --- benches/mean.rs | 2 ++ benches/min.rs | 2 ++ src/lib.rs | 1 + tests/kurtosis.rs | 2 ++ tests/max.rs | 2 ++ tests/mean.rs | 2 ++ tests/min.rs | 2 ++ tests/random.rs | 2 ++ tests/skewness.rs | 2 ++ tests/streaming_stats.rs | 2 ++ tests/weighted_mean.rs | 2 ++ 11 files changed, 21 insertions(+) diff --git a/benches/mean.rs b/benches/mean.rs index f3f0024..0e0ab32 100644 --- a/benches/mean.rs +++ b/benches/mean.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))] + #[macro_use] extern crate bencher; extern crate rand; diff --git a/benches/min.rs b/benches/min.rs index 3dfb867..df045a4 100644 --- a/benches/min.rs +++ b/benches/min.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))] + #[macro_use] extern crate bencher; extern crate rand; diff --git a/src/lib.rs b/src/lib.rs index c989cd5..96efe8c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -97,6 +97,7 @@ //! assert_eq!(s.max(), 5.0); //! ``` +#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))] #![no_std] diff --git a/tests/kurtosis.rs b/tests/kurtosis.rs index 7e2c7d7..85dd591 100644 --- a/tests/kurtosis.rs +++ b/tests/kurtosis.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))] + #[macro_use] extern crate average; extern crate core; diff --git a/tests/max.rs b/tests/max.rs index 7ee026e..95a294e 100644 --- a/tests/max.rs +++ b/tests/max.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))] + extern crate average; extern crate core; diff --git a/tests/mean.rs b/tests/mean.rs index c8f4793..8184841 100644 --- a/tests/mean.rs +++ b/tests/mean.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))] + #[macro_use] extern crate average; extern crate core; diff --git a/tests/min.rs b/tests/min.rs index aad26a7..0b85d7e 100644 --- a/tests/min.rs +++ b/tests/min.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))] + extern crate average; extern crate core; diff --git a/tests/random.rs b/tests/random.rs index 4f8c62f..2e4674b 100644 --- a/tests/random.rs +++ b/tests/random.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))] + #[macro_use] extern crate average; extern crate rand; diff --git a/tests/skewness.rs b/tests/skewness.rs index 378aaae..6e9b810 100644 --- a/tests/skewness.rs +++ b/tests/skewness.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))] + #[macro_use] extern crate average; extern crate core; diff --git a/tests/streaming_stats.rs b/tests/streaming_stats.rs index fe81361..45aeb73 100644 --- a/tests/streaming_stats.rs +++ b/tests/streaming_stats.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))] + #[macro_use] extern crate average; extern crate rand; diff --git a/tests/weighted_mean.rs b/tests/weighted_mean.rs index c1cdec3..53004af 100644 --- a/tests/weighted_mean.rs +++ b/tests/weighted_mean.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature = "cargo-clippy", allow(float_cmp, map_clone))] + #[macro_use] extern crate average; extern crate core;