Skip to content

Commit

Permalink
fix(h2): explicitly call Buf::remaining for Cursor<Vec<u8>>
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Jun 24, 2021
1 parent 8c89a8c commit 0f45497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto/h2/mod.rs
Expand Up @@ -255,7 +255,7 @@ impl<B: Buf> Buf for SendBuf<B> {
fn remaining(&self) -> usize {
match *self {
Self::Buf(ref b) => b.remaining(),
Self::Cursor(ref c) => c.remaining(),
Self::Cursor(ref c) => Buf::remaining(c),
Self::None => 0,
}
}
Expand Down

0 comments on commit 0f45497

Please sign in to comment.