diff --git a/src/proto/h2/mod.rs b/src/proto/h2/mod.rs index b410bab60c..4b66b1880f 100644 --- a/src/proto/h2/mod.rs +++ b/src/proto/h2/mod.rs @@ -255,7 +255,7 @@ impl Buf for SendBuf { 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, } }