refactor(http2): fix unstable name clash of Cursor::remaining

This commit is contained in:
Sean McArthur
2021-07-07 09:56:56 -07:00
parent 13594c377d
commit 11cb4725ad

View File

@@ -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,
}
}