Skip to content

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

Open
@paolobarbolini

Description

@paolobarbolini

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions