Skip to content

Commit

Permalink
refactor(http2): fix unstable name clash of Cursor::remaining
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jul 7, 2021
1 parent 13594c3 commit 11cb472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto/h2/mod.rs
Original file line number Diff line number Diff line change
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 11cb472

Please sign in to comment.