diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bytes_mut.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs index 2af58e3..8e42079 100644 --- a/src/bytes_mut.rs +++ b/src/bytes_mut.rs @@ -819,7 +819,7 @@ impl BytesMut { } fn try_unsplit(&mut self, other: BytesMut) -> Result<(), BytesMut> { - if other.is_empty() { + if other.capacity() == 0 { return Ok(()); } |