From 11cb4725ad2065ce1650b7187be3d918219176c5 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Wed, 7 Jul 2021 09:56:56 -0700 Subject: [PATCH] refactor(http2): fix unstable name clash of Cursor::remaining --- 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 b410bab6..4b66b188 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, } }