diff options
Diffstat (limited to 'src/resources.rs')
-rw-r--r-- | src/resources.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources.rs b/src/resources.rs index fd136881d..55e1a9f64 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -452,7 +452,7 @@ pub fn eager_read<T: AsMut<[u8]>>( resource: Resource, mut buf: T, ) -> EagerRead<Resource, T> { - Either::A(tokio_io::io::read(resource, buf)).into() + Either::A(tokio_io::io::read(resource, buf)) } #[cfg(not(unix))] @@ -460,12 +460,12 @@ pub fn eager_write<T: AsRef<[u8]>>( resource: Resource, buf: T, ) -> EagerWrite<Resource, T> { - Either::A(tokio_write::write(resource, buf)).into() + Either::A(tokio_write::write(resource, buf)) } #[cfg(not(unix))] pub fn eager_accept(resource: Resource) -> EagerAccept { - Either::A(tokio_util::accept(resource)).into() + Either::A(tokio_util::accept(resource)) } // This is an optimization that Tokio should do. |