-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
BufReader .consume() confuses the Reader seek point when the buffer is empty #23196
Comments
Currently the contract of I believe this is a documentation issue as the documentation for the |
Maybe adding an assert_debug to check that could be useful too ? |
@alexcrichton What's the intended use of |
Oh sorry, I meant |
The behavior of .consume when the buffer is empty is weird :
while :
The text was updated successfully, but these errors were encountered: