Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings from clippy 1.78 #928

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion benches/specializations.rs
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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