From 0f454970ef5d77244b22bbf25c0594ee00cf0615 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Thu, 24 Jun 2021 11:16:47 +0200 Subject: [PATCH] fix(h2): explicitly call Buf::remaining for Cursor> --- src/proto/h2/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, } }