summaryrefslogtreecommitdiffstats
path: root/tokio-io/src/io/shutdown.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio-io/src/io/shutdown.rs')
-rw-r--r--tokio-io/src/io/shutdown.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/tokio-io/src/io/shutdown.rs b/tokio-io/src/io/shutdown.rs
index 96a8886d..d963a813 100644
--- a/tokio-io/src/io/shutdown.rs
+++ b/tokio-io/src/io/shutdown.rs
@@ -1,6 +1,6 @@
use std::io;
-use futures::{Poll, Future, Async};
+use futures::{Async, Future, Poll};
use AsyncWrite;
@@ -24,15 +24,15 @@ pub struct Shutdown<A> {
/// otherwise it will repeatedly call `shutdown` until it sees `Ok(())`,
/// scheduling a retry if `WouldBlock` is seen along the way.
pub fn shutdown<A>(a: A) -> Shutdown<A>
- where A: AsyncWrite,
+where
+ A: AsyncWrite,
{
- Shutdown {
- a: Some(a),
- }
+ Shutdown { a: Some(a) }
}
impl<A> Future for Shutdown<A>
- where A: AsyncWrite,
+where
+ A: AsyncWrite,
{
type Item = A;
type Error = io::Error;