From aa6597ba66b10fa9175ccd7b3c0335f4a49b91c5 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Wed, 23 Dec 2020 18:15:56 +0100 Subject: [PATCH] compat: update traits naming to match tokio 1.0 (#3324) --- tokio-util/src/compat.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tokio-util/src/compat.rs b/tokio-util/src/compat.rs index 56faa33dce4..a1fad4ab59a 100644 --- a/tokio-util/src/compat.rs +++ b/tokio-util/src/compat.rs @@ -48,7 +48,7 @@ impl FuturesAsyncWriteCompatExt for T {} /// Extension trait that allows converting a type implementing /// `tokio::io::AsyncRead` to implement `futures_io::AsyncRead`. -pub trait Tokio02AsyncReadCompatExt: tokio::io::AsyncRead { +pub trait TokioAsyncReadCompatExt: tokio::io::AsyncRead { /// Wraps `self` with a compatibility layer that implements /// `futures_io::AsyncRead`. fn compat(self) -> Compat @@ -59,11 +59,11 @@ pub trait Tokio02AsyncReadCompatExt: tokio::io::AsyncRead { } } -impl Tokio02AsyncReadCompatExt for T {} +impl TokioAsyncReadCompatExt for T {} /// Extension trait that allows converting a type implementing /// `tokio::io::AsyncWrite` to implement `futures_io::AsyncWrite`. -pub trait Tokio02AsyncWriteCompatExt: tokio::io::AsyncWrite { +pub trait TokioAsyncWriteCompatExt: tokio::io::AsyncWrite { /// Wraps `self` with a compatibility layer that implements /// `futures_io::AsyncWrite`. fn compat_write(self) -> Compat @@ -74,7 +74,7 @@ pub trait Tokio02AsyncWriteCompatExt: tokio::io::AsyncWrite { } } -impl Tokio02AsyncWriteCompatExt for T {} +impl TokioAsyncWriteCompatExt for T {} // === impl Compat ===