diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_service.rs index 0fdfac14..9ec7849a 100644 --- a/actix-service/src/fn_service.rs +++ b/actix-service/src/fn_service.rs @@ -28,7 +28,8 @@ where pub fn fn_cfg_factory(f: F) -> FnNewServiceConfig where F: Fn(&C) -> R, - R: IntoFuture, + R: IntoFuture, + R::Item: IntoService, S: Service, { FnNewServiceConfig::new(f)