refactor(http2): fix unstable name clash of Cursor::remaining
This commit is contained in:
@@ -255,7 +255,7 @@ impl<B: Buf> Buf for SendBuf<B> {
|
|||||||
fn remaining(&self) -> usize {
|
fn remaining(&self) -> usize {
|
||||||
match *self {
|
match *self {
|
||||||
Self::Buf(ref b) => b.remaining(),
|
Self::Buf(ref b) => b.remaining(),
|
||||||
Self::Cursor(ref c) => c.remaining(),
|
Self::Cursor(ref c) => Buf::remaining(c),
|
||||||
Self::None => 0,
|
Self::None => 0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user