From ef2096097717cd75d8abc02c07784d3add5bfc3f Mon Sep 17 00:00:00 2001 From: dymart Date: Mon, 28 Feb 2022 01:36:09 -0800 Subject: [PATCH] [shed][async_compression] fix warning for read_buf --- shed/async_compression/src/metered.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shed/async_compression/src/metered.rs b/shed/async_compression/src/metered.rs index 594845aeb..682423262 100644 --- a/shed/async_compression/src/metered.rs +++ b/shed/async_compression/src/metered.rs @@ -90,7 +90,7 @@ impl AsyncRead for MeteredRead { where Self: Sized, { - let read_bytes = try_ready!(self.inner.read_buf(buf)); + let read_bytes = try_ready!(tokio_io::AsyncRead::read_buf(&mut self.inner, buf)); self.total_thru += read_bytes as u64; Ok(Async::Ready(read_bytes)) }