From 749b67094900a7e6e02a7abddefa7b9d5eddea61 Mon Sep 17 00:00:00 2001 From: Chinedu Francis Nwafili Date: Mon, 5 Jul 2021 14:10:10 -0400 Subject: [PATCH] Export actix_web::dev::ServiceFactory Enables: ``` pub fn create_app() -> App< impl ServiceFactory< ServiceRequest, Response = ServiceResponse, Config = (), InitError = (), Error = Error, >, AnyBody, > { App::new() .wrap(Compat::new(Logger::default()) .route("/", web::to(|| async { "hello" })) } ``` --- src/dev.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev.rs b/src/dev.rs index a656604e37f..ed167485ba0 100644 --- a/src/dev.rs +++ b/src/dev.rs @@ -29,7 +29,7 @@ pub use actix_http::{Extensions, Payload, PayloadStream, RequestHead, ResponseHe pub use actix_router::{Path, ResourceDef, ResourcePath, Url}; pub use actix_server::Server; pub use actix_service::{ - always_ready, fn_factory, fn_service, forward_ready, Service, Transform, + always_ready, fn_factory, fn_service, forward_ready, Service, ServiceFactory, Transform }; pub(crate) fn insert_slash(mut patterns: Vec) -> Vec {