aboutsummaryrefslogtreecommitdiffstats
path: root/src/pipe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pipe.rs')
-rw-r--r--src/pipe.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pipe.rs b/src/pipe.rs
index 6bf32c2..51f094a 100644
--- a/src/pipe.rs
+++ b/src/pipe.rs
@@ -1,9 +1,10 @@
//! Define an adapter to implement `std::io::Write` on `Sender<Bytes>`.
+use std::io::{self, Error, ErrorKind, Write};
+
use actix_web::web::{Bytes, BytesMut};
use futures::channel::mpsc::Sender;
use futures::executor::block_on;
use futures::sink::SinkExt;
-use std::io::{self, Error, ErrorKind, Write};
/// Adapter to implement the `std::io::Write` trait on a `Sender<Bytes>` from a futures channel.
///