aboutsummaryrefslogtreecommitdiffstats
path: root/src/pipe.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2022-09-20 01:56:08 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2022-09-20 01:56:08 +0000
commit8f932897bed0a51a279369dab75afe05cc0bd830 (patch)
treeb93087d474a6e3bd441c4f1bf571a0aa7231399d /src/pipe.rs
parentGet rid of some unused dependencies (diff)
downloadminiserve-8f932897bed0a51a279369dab75afe05cc0bd830.tar.gz
miniserve-8f932897bed0a51a279369dab75afe05cc0bd830.zip
Tidy up some imports
Diffstat (limited to '')
-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.
///