mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-24 00:00:14 +02:00
Various cleanup (#635)
This commit is contained in:
+1
-1
@@ -135,7 +135,7 @@ where
|
||||
U: Buf,
|
||||
{
|
||||
fn remaining(&self) -> usize {
|
||||
self.a.remaining().checked_add(self.b.remaining()).unwrap()
|
||||
self.a.remaining().saturating_add(self.b.remaining())
|
||||
}
|
||||
|
||||
fn chunk(&self) -> &[u8] {
|
||||
|
||||
Reference in New Issue
Block a user