summaryrefslogtreecommitdiff
path: root/src/resources.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2019-01-15 13:06:25 +0100
committerRyan Dahl <ry@tinyclouds.org>2019-01-15 07:06:25 -0500
commitd8adeb41de2daab15a0d30eeead9796fa58bfbc3 (patch)
tree030670147587a2ebc04506a3dcad7bd34bce1016 /src/resources.rs
parent48ca06e420d08d15ac6653ab73c6249eb99428a7 (diff)
Clippy fixes (also fixes build with nightly) (#1527)
Diffstat (limited to 'src/resources.rs')
-rw-r--r--src/resources.rs6
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.