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

PutBack::put_back now returns the old value #880

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

Philippe-Cholet
Copy link
Member

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".

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

codecov bot commented Feb 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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
@@            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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@phimuemue phimuemue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In favor of this. More flexible API.

@jswrenn jswrenn added this to the next milestone Feb 19, 2024
@jswrenn jswrenn added this pull request to the merge queue Feb 19, 2024
Merged via the queue into rust-itertools:master with commit b54c4c3 Feb 19, 2024
13 checks passed
@Philippe-Cholet Philippe-Cholet deleted the putback-put_back branch February 19, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PutBack behavior
3 participants