rust-itertools / itertools

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

`MapInto`: relax `Debug/Clone` bounds #889

Closed Philippe-Cholet closed 7 months ago

Philippe-Cholet commented 7 months ago

Derive those adds a bound on U which is not needed (I checked with the "expand macros" tool of the Rust playground) since it's only PhantomData. Note that PhantomData<T> is Debug + Clone for any T.

I can hit easily hit the error (playground).

codecov[bot] commented 7 months ago

Codecov Report

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

Project coverage is 94.55%. Comparing base (6814180) to head (dfa721f). Report is 26 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #889 +/- ## ========================================== + Coverage 94.38% 94.55% +0.16% ========================================== Files 48 48 Lines 6665 6753 +88 ========================================== + Hits 6291 6385 +94 + Misses 374 368 -6 ```

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