mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-14 00:00:13 +02:00
fix dropping front block in BlockBuf
This commit is contained in:
+1
-1
@@ -175,7 +175,7 @@ impl BlockBuf {
|
||||
|
||||
block.drop(segment_n);
|
||||
|
||||
!MutBuf::has_remaining(block)
|
||||
block.len() == 0
|
||||
};
|
||||
|
||||
if pop {
|
||||
|
||||
Reference in New Issue
Block a user