You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
The
BufMut::remaining_mut
implementation forBytesMut
doesusize::MAX - self.len()
, while theVec<u8>
impl doesisize::MAX as usize - self.len()
instead. Shouldn't they both useisize::MAX
given thanBytesMut
is represented as aVec<u8>
underneath?The text was updated successfully, but these errors were encountered: