summaryrefslogtreecommitdiffstats
path: root/tokio-io/src/allow_std.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2019-05-14 10:27:36 -0700
committerGitHub <noreply@github.com>2019-05-14 10:27:36 -0700
commitcb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0 (patch)
tree2158eab230c8717d3b35717e50f14fda6ca0edf1 /tokio-io/src/allow_std.rs
parent79d88200500f6e6c9970e1ad26469276c1a2f71f (diff)
Update Tokio to Rust 2018 (#1082)
Diffstat (limited to 'tokio-io/src/allow_std.rs')
-rw-r--r--tokio-io/src/allow_std.rs4
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)
}
}