diff --git a/actix-web-codegen/Cargo.toml b/actix-web-codegen/Cargo.toml index 835c9fcc9..c7b06e311 100644 --- a/actix-web-codegen/Cargo.toml +++ b/actix-web-codegen/Cargo.toml @@ -19,4 +19,4 @@ proc-macro2 = "^1" [dev-dependencies] actix-rt = "1.0.0" actix-web = "3.0.0-alpha.2" -futures = "0.3.1" +futures-util = { version = "0.3.5", default-features = false } diff --git a/actix-web-codegen/src/lib.rs b/actix-web-codegen/src/lib.rs index 39a8a6464..2a49b4714 100644 --- a/actix-web-codegen/src/lib.rs +++ b/actix-web-codegen/src/lib.rs @@ -33,7 +33,6 @@ //! ```rust //! use actix_web::HttpResponse; //! use actix_web_codegen::get; -//! use futures::{future, Future}; //! //! #[get("/test")] //! async fn async_test() -> Result { diff --git a/actix-web-codegen/tests/test_macro.rs b/actix-web-codegen/tests/test_macro.rs index 8264a7fd7..0ef7e1c75 100644 --- a/actix-web-codegen/tests/test_macro.rs +++ b/actix-web-codegen/tests/test_macro.rs @@ -1,10 +1,11 @@ +use std::future::Future; use std::pin::Pin; use std::task::{Context, Poll}; use actix_web::{http, test, web::Path, App, HttpResponse, Responder, Error}; use actix_web::dev::{Service, Transform, ServiceRequest, ServiceResponse}; use actix_web_codegen::{connect, delete, get, head, options, patch, post, put, trace}; -use futures::{future, Future}; +use futures_util::future; use actix_web::http::header::{HeaderName, HeaderValue}; // Make sure that we can name function as 'config'