rust-itertools / itertools

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

`PutBack::put_back` now returns the old value #880

Closed Philippe-Cholet closed 5 months ago

Philippe-Cholet commented 5 months ago

Fixes #313

Discard the value sure is the main usage but I don't see a non-tricky usage of this so I'm not sure if we should do this, feel free to close this.

Because it does not return () anymore, some changes can be necessary to ignore the returned value like here in "tests/quick.rs".

codecov[bot] commented 5 months ago

Codecov Report

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

Comparison is base (6814180) 94.38% compared to head (fd511fe) 94.15%. Report is 11 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #880 +/- ## ========================================== - Coverage 94.38% 94.15% -0.24% ========================================== Files 48 48 Lines 6665 6672 +7 ========================================== - Hits 6291 6282 -9 - Misses 374 390 +16 ```

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