diff --git a/examples/send_file.rs b/examples/send_file.rs index 370d15d5b2..d369e1afaf 100644 --- a/examples/send_file.rs +++ b/examples/send_file.rs @@ -2,18 +2,15 @@ use std::net::SocketAddr; -use hyper::server::conn::http1; -use tokio::{ - net::TcpListener, - fs::File, -}; -use tokio_util::io::ReaderStream; +use bytes::Bytes; use futures_util::TryStreamExt; +use http_body_util::{combinators::BoxBody, BodyExt, Full, StreamBody}; use hyper::body::Frame; -use bytes::Bytes; -use http_body_util::{Full, StreamBody, BodyExt, combinators::BoxBody}; +use hyper::server::conn::http1; use hyper::service::service_fn; use hyper::{Method, Request, Response, Result, StatusCode}; +use tokio::{fs::File, net::TcpListener}; +use tokio_util::io::ReaderStream; #[path = "../benches/support/mod.rs"] mod support;