We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Read::read_to_end
before fix:
fn read_to_end( &mut self, mut buf: Vec<u8>, ) -> impl Future<Output = Result<Vec<u8>, Error>> + MaybeSend { async move { buf.resize(self.size().await? as usize, 0); let buf = self.read_exact(buf).await?; Ok(buf) } }
When Seek is not 0, resizing buf to the full size of the file results in eof
The text was updated successfully, but these errors were encountered:
KKould
Successfully merging a pull request may close this issue.
before fix:
When Seek is not 0, resizing buf to the full size of the file results in eof
The text was updated successfully, but these errors were encountered: