From 8204a0ef9bfb887da7010cb651771780b0dc507b Mon Sep 17 00:00:00 2001 From: fakeshadow <24548779@qq.com> Date: Wed, 30 Dec 2020 04:35:52 +0800 Subject: [PATCH] use actix_server::TestServer --- actix-service/src/map_config.rs | 2 +- actix-tls/tests/test_connect.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-service/src/map_config.rs b/actix-service/src/map_config.rs index d6d6f6b2..1297f7a0 100644 --- a/actix-service/src/map_config.rs +++ b/actix-service/src/map_config.rs @@ -6,7 +6,7 @@ use super::{IntoServiceFactory, ServiceFactory}; /// /// Note that this function consumes the receiving service factory and returns /// a wrapped version of it. -pub fn map_config(factory: I, f: F) -> MapConfig +pub fn map_config(factory: I, f: F) -> MapConfig where I: IntoServiceFactory, SF: ServiceFactory, diff --git a/actix-tls/tests/test_connect.rs b/actix-tls/tests/test_connect.rs index fd083893..83ff00d1 100644 --- a/actix-tls/tests/test_connect.rs +++ b/actix-tls/tests/test_connect.rs @@ -3,7 +3,7 @@ use std::io; use actix_codec::{BytesCodec, Framed}; use actix_rt::net::TcpStream; use actix_service::{fn_service, Service, ServiceFactory}; -use actix_testing::TestServer; +use actix_server::TestServer; use bytes::Bytes; use futures_util::sink::SinkExt;