diff options
Diffstat (limited to 'tokio-io/src/allow_std.rs')
-rw-r--r-- | tokio-io/src/allow_std.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio-io/src/allow_std.rs b/tokio-io/src/allow_std.rs index af39ac21..c86ccca4 100644 --- a/tokio-io/src/allow_std.rs +++ b/tokio-io/src/allow_std.rs @@ -1,6 +1,6 @@ +use crate::{AsyncRead, AsyncWrite}; use futures::{Async, Poll}; use std::{fmt, io}; -use {AsyncRead, AsyncWrite}; /// A simple wrapper type which allows types that only implement /// `std::io::Read` or `std::io::Write` to be used in contexts which expect @@ -50,7 +50,7 @@ where fn write_all(&mut self, buf: &[u8]) -> io::Result<()> { self.0.write_all(buf) } - fn write_fmt(&mut self, fmt: fmt::Arguments) -> io::Result<()> { + fn write_fmt(&mut self, fmt: fmt::Arguments<'_>) -> io::Result<()> { self.0.write_fmt(fmt) } } |