From 225045484b57e94cff6d95c8e6e8c91b7746ce3f Mon Sep 17 00:00:00 2001 From: Philippe-Cholet <44676486+Philippe-Cholet@users.noreply.github.com> Date: Thu, 2 May 2024 16:20:13 +0200 Subject: [PATCH] Fix warnings from clippy 1.78 --- benches/specializations.rs | 2 +- src/adaptors/multi_product.rs | 2 +- tests/specializations.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/benches/specializations.rs b/benches/specializations.rs index b5230a06a..18039fc4e 100644 --- a/benches/specializations.rs +++ b/benches/specializations.rs @@ -1,4 +1,4 @@ -#![allow(unstable_name_collisions)] +#![allow(unstable_name_collisions, clippy::incompatible_msrv)] use criterion::black_box; use criterion::BenchmarkId; diff --git a/src/adaptors/multi_product.rs b/src/adaptors/multi_product.rs index d551c0afc..314d4a46e 100644 --- a/src/adaptors/multi_product.rs +++ b/src/adaptors/multi_product.rs @@ -128,7 +128,7 @@ where // This cartesian product had at most one item to generate and now ends. self.0 = ProductEnded; } else { - inner.cur = next.clone(); + inner.cur.clone_from(&next); } next } diff --git a/tests/specializations.rs b/tests/specializations.rs index 949b2a7de..cb2141053 100644 --- a/tests/specializations.rs +++ b/tests/specializations.rs @@ -466,7 +466,7 @@ quickcheck! { helper(v.iter().copied()); helper(v.iter().copied().filter(Result::is_ok)); - fn helper(it: impl Iterator> + DoubleEndedIterator + Clone) { + fn helper(it: impl DoubleEndedIterator> + Clone) { macro_rules! check_results_specialized { ($src:expr, |$it:pat| $closure:expr) => { assert_eq!(