diff --git a/benches/benchmarks/iter_with_large_setup.rs b/benches/benchmarks/iter_with_large_setup.rs index 217d2715..b4d53ab5 100644 --- a/benches/benchmarks/iter_with_large_setup.rs +++ b/benches/benchmarks/iter_with_large_setup.rs @@ -10,10 +10,7 @@ fn large_setup(c: &mut Criterion) { "iter_with_large_setup", Benchmark::new("large_setup", |b| { // NOTE: iter_with_large_setup is deprecated. Use iter_batched instead. - b.iter_with_large_setup( - || (0..SIZE).map(|i| i as u8).collect::>(), - |v| v.clone(), - ) + b.iter_with_large_setup(|| (0..SIZE).map(|i| i as u8).collect::>(), |v| v) }) .throughput(Throughput::Bytes(SIZE as u64)), ); diff --git a/benches/benchmarks/iter_with_setup.rs b/benches/benchmarks/iter_with_setup.rs index 0f870634..e65495ca 100644 --- a/benches/benchmarks/iter_with_setup.rs +++ b/benches/benchmarks/iter_with_setup.rs @@ -4,10 +4,7 @@ const SIZE: usize = 1024 * 1024; fn setup(c: &mut Criterion) { c.bench_function("iter_with_setup", |b| { - b.iter_with_setup( - || (0..SIZE).map(|i| i as u8).collect::>(), - |v| v.clone(), - ) + b.iter_with_setup(|| (0..SIZE).map(|i| i as u8).collect::>(), |v| v) }); } diff --git a/plot/src/axis.rs b/plot/src/axis.rs index 97fd0cbe..142c7fbd 100644 --- a/plot/src/axis.rs +++ b/plot/src/axis.rs @@ -155,6 +155,9 @@ where } impl<'a> Script for (Axis, &'a Properties) { + // Allow clippy::format_push_string even with older versions of rust (<1.62) which + // don't have it defined. + #[allow(clippy::all)] fn script(&self) -> String { let &(axis, properties) = self; let axis_ = axis.display(); diff --git a/plot/src/candlestick.rs b/plot/src/candlestick.rs index e0a5cbeb..d1754e8c 100644 --- a/plot/src/candlestick.rs +++ b/plot/src/candlestick.rs @@ -27,6 +27,9 @@ impl Default for Properties { } impl Script for Properties { + // Allow clippy::format_push_string even with older versions of rust (<1.62) which + // don't have it defined. + #[allow(clippy::all)] fn script(&self) -> String { let mut script = String::from("with candlesticks "); diff --git a/plot/src/curve.rs b/plot/src/curve.rs index bbddeff1..a5766ee5 100644 --- a/plot/src/curve.rs +++ b/plot/src/curve.rs @@ -38,6 +38,9 @@ impl CurveDefault