From 043057ecbdaeaf672eb8354dfb1623c44a19dc6e Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 1 Feb 2020 23:32:08 +0900 Subject: [PATCH] Fix import scopes --- actix-server/tests/test_server.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/actix-server/tests/test_server.rs b/actix-server/tests/test_server.rs index 46587a80..c5aa70bc 100644 --- a/actix-server/tests/test_server.rs +++ b/actix-server/tests/test_server.rs @@ -1,15 +1,10 @@ -use std::io::Read; use std::sync::atomic::{AtomicUsize, Ordering::Relaxed}; use std::sync::{mpsc, Arc}; use std::{net, thread, time}; -use actix_codec::{BytesCodec, Framed}; -use actix_rt::net::TcpStream; use actix_server::Server; use actix_service::fn_service; -use bytes::Bytes; use futures::future::{lazy, ok}; -use futures::SinkExt; use net2::TcpBuilder; fn unused_addr() -> net::SocketAddr { @@ -73,6 +68,12 @@ fn test_listen() { #[test] #[cfg(unix)] fn test_start() { + use actix_codec::{BytesCodec, Framed}; + use actix_rt::net::TcpStream; + use bytes::Bytes; + use futures::SinkExt; + use std::io::Read; + let addr = unused_addr(); let (tx, rx) = mpsc::channel();