rust-itertools / itertools

Extra iterator adaptors, iterator methods, free functions, and macros.
https://docs.rs/itertools/
Apache License 2.0
2.62k stars 298 forks source link

Fix warnings from clippy 1.79 #956

Closed Philippe-Cholet closed 3 weeks ago

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.60%. Comparing base (6814180) to head (733e3c0). Report is 99 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #956 +/- ## ========================================== + Coverage 94.38% 94.60% +0.21% ========================================== Files 48 49 +1 Lines 6665 7043 +378 ========================================== + Hits 6291 6663 +372 - Misses 374 380 +6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Philippe-Cholet commented 3 weeks ago

@phimuemue Something new in 1.79: impl FromIterator for (impl Default + Extend, impl Default + Extend) https://github.com/rust-lang/rust/pull/107462/ is nice.

let (doubles, squares): (Vec<_>, Vec<_>) = (0..5).map(|x| (x * 2, x * x)).collect();