From ff36b72e05fef89368940bce22bef5c5856f7f2c Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 27 Dec 2020 04:10:56 +0000 Subject: [PATCH] amke box future type more explicit --- actix-service/src/boxed.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/actix-service/src/boxed.rs b/actix-service/src/boxed.rs index 31b90ca9..35a10dac 100644 --- a/actix-service/src/boxed.rs +++ b/actix-service/src/boxed.rs @@ -6,10 +6,10 @@ use futures_util::future::FutureExt; use crate::{Service, ServiceFactory}; -pub type BoxFuture = Pin>>>; +pub type BoxFuture = Pin>>; pub type BoxService = - Box>>; + Box>>>; pub struct BoxServiceFactory(Inner); @@ -50,7 +50,7 @@ type Inner = Box< Error = Err, InitError = InitErr, Service = BoxService, - Future = BoxFuture, InitErr>, + Future = BoxFuture, InitErr>>, >, >; @@ -68,7 +68,7 @@ where type Config = C; type Service = BoxService; - type Future = BoxFuture; + type Future = BoxFuture>; fn new_service(&self, cfg: C) -> Self::Future { self.0.new_service(cfg) @@ -99,7 +99,7 @@ where type InitError = InitErr; type Config = Cfg; type Service = BoxService; - type Future = BoxFuture; + type Future = BoxFuture>; fn new_service(&self, cfg: Cfg) -> Self::Future { Box::pin( @@ -130,7 +130,7 @@ where { type Response = Res; type Error = Err; - type Future = BoxFuture; + type Future = BoxFuture>; fn poll_ready(&mut self, ctx: &mut Context<'_>) -> Poll> { self.0.poll_ready(ctx)