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

Inconsistency between BytesMut and Vec<u8> value for BufMut::remaining_mut #771

Open
paolobarbolini opened this issue Feb 24, 2025 · 0 comments

Comments

@paolobarbolini
Copy link
Contributor

The BufMut::remaining_mut implementation for BytesMut does usize::MAX - self.len(), while the Vec<u8> impl does isize::MAX as usize - self.len() instead. Shouldn't they both use isize::MAX given than BytesMut is represented as a Vec<u8> underneath?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant