Skip to content

Commit

Permalink
Fix warnings from clippy 1.78
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe-Cholet committed May 2, 2024
1 parent dd6a569 commit d045e9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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;
Expand Down
2 changes: 1 addition & 1 deletion src/adaptors/multi_product.rs
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion tests/specializations.rs
Expand Up @@ -466,7 +466,7 @@ quickcheck! {
helper(v.iter().copied());
helper(v.iter().copied().filter(Result::is_ok));

fn helper(it: impl Iterator<Item = Result<u8, u8>> + DoubleEndedIterator + Clone) {
fn helper(it: impl DoubleEndedIterator<Item = Result<u8, u8>> + Clone) {
macro_rules! check_results_specialized {
($src:expr, |$it:pat| $closure:expr) => {
assert_eq!(
Expand Down

0 comments on commit d045e9d

Please sign in to comment.