From e52b80069e3a2371ef5e2e19508122c2531a291c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 28 Mar 2022 01:36:56 +0100 Subject: [PATCH] actix cleanup: import futures::future Signed-off-by: Ian Jackson --- daemon/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon/main.rs b/daemon/main.rs index 2d5113fe..157785be 100644 --- a/daemon/main.rs +++ b/daemon/main.rs @@ -15,6 +15,7 @@ pub mod session; pub mod sse; pub use std::pin::Pin; +pub use futures::future; pub use crate::api::InstanceAccess; pub use crate::api::{FatalErrorResponse}; @@ -213,11 +214,11 @@ where T: FromStr, T::Err: Into // T::Error: Debug, { - type Future = futures::future::Ready, E>>; + type Future = future::Ready, E>>; type Error = E; fn from_request(req: &HttpRequest, _: &mut actix_web::dev::Payload) -> Self::Future { - futures::future::ready( + future::ready( req.uri().query() .map(|s| s.parse()) .transpose() -- 2.30.2