Skip to content

Commit 11cb472

Browse files
committed
refactor(http2): fix unstable name clash of Cursor::remaining
1 parent 13594c3 commit 11cb472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/proto/h2/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ impl<B: Buf> Buf for SendBuf<B> {
255255
fn remaining(&self) -> usize {
256256
match *self {
257257
Self::Buf(ref b) => b.remaining(),
258-
Self::Cursor(ref c) => c.remaining(),
258+
Self::Cursor(ref c) => Buf::remaining(c),
259259
Self::None => 0,
260260
}
261261
}

0 commit comments

Comments
 (0)