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
BufMut::remaining_mutimplementation forBytesMutdoesusize::MAX - self.len(), while theVec<u8>impl doesisize::MAX as usize - self.len()instead. Shouldn't they both useisize::MAXgiven thanBytesMutis represented as aVec<u8>underneath?