diff --git a/actix_identity/struct.IdentityService.html b/actix_identity/struct.IdentityService.html index b7478fac0..ccda4186d 100644 --- a/actix_identity/struct.IdentityService.html +++ b/actix_identity/struct.IdentityService.html @@ -1,5 +1,5 @@ IdentityService in actix_identity - Rust -

Struct actix_identity::IdentityService[][src]

pub struct IdentityService<T> { /* fields omitted */ }
Expand description

Request identity middleware

+

Struct actix_identity::IdentityService[][src]

pub struct IdentityService<T> { /* fields omitted */ }
Expand description

Request identity middleware

use actix_web::App;
 use actix_identity::{CookieIdentityPolicy, IdentityService};
@@ -12,13 +12,13 @@
 let app = App::new()
     // wrap policy into identity middleware
     .wrap(IdentityService::new(policy));
-

Implementations

Create new identity service with specified backend.

-

Trait Implementations

Responses produced by the service.

+

Implementations

Create new identity service with specified backend.

+

Trait Implementations

Responses produced by the service.

Errors produced by the service.

Errors produced while building a transform service.

The TransformService value created by this factory

The future response value.

-

Creates and returns a new Transform component, asynchronously

+

Creates and returns a new Transform component, asynchronously

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/actix_session/struct.CookieSession.html b/actix_session/struct.CookieSession.html index 990bdae87..7adfba64c 100644 --- a/actix_session/struct.CookieSession.html +++ b/actix_session/struct.CookieSession.html @@ -1,5 +1,5 @@ CookieSession in actix_session - Rust -

Struct actix_session::CookieSession[][src]

pub struct CookieSession(_);
Expand description

Use cookies for session storage.

+

Struct actix_session::CookieSession[][src]

pub struct CookieSession(_);
Expand description

Use cookies for session storage.

CookieSession creates sessions which are limited to storing fewer than 4000 bytes of data (as the payload must fit into a single cookie). An Internal Server Error is generated if the session contains more @@ -29,33 +29,33 @@ cause troubles when reading cookie, if they are not properly percent encoded.

path("/") .secure(true)) .service(web::resource("/").to(|| HttpResponse::Ok()));
-

Implementations

Construct new signed CookieSession instance.

+

Implementations

Construct new signed CookieSession instance.

Panics if key length is less than 32 bytes.

-

Construct new private CookieSession instance.

+

Construct new private CookieSession instance.

Panics if key length is less than 32 bytes.

-

Sets the path field in the session cookie being built.

-

Sets the name field in the session cookie being built.

-

Sets the domain field in the session cookie being built.

-

When true, prevents adding session cookies to responses until +

Sets the path field in the session cookie being built.

+

Sets the name field in the session cookie being built.

+

Sets the domain field in the session cookie being built.

+

When true, prevents adding session cookies to responses until the session contains data. Default is false.

Useful when trying to comply with laws that require consent for setting cookies.

-

Sets the secure field in the session cookie being built.

+

Sets the secure field in the session cookie being built.

If the secure field is set, a cookie will only be transmitted when the connection is secure - i.e. https

-

Sets the http_only field in the session cookie being built.

-

Sets the same_site field in the session cookie being built.

-

Sets the max-age field in the session cookie being built.

-

Sets the max-age field in the session cookie being built.

-

Sets the expires field in the session cookie being built.

-

Sets the expires field in the session cookie being built.

-

Trait Implementations

Returns a copy of the value. Read more

+

Sets the http_only field in the session cookie being built.

+

Sets the same_site field in the session cookie being built.

+

Sets the max-age field in the session cookie being built.

+

Sets the max-age field in the session cookie being built.

+

Sets the expires field in the session cookie being built.

+

Sets the expires field in the session cookie being built.

+

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Responses produced by the service.

+

Responses produced by the service.

Errors produced by the service.

Errors produced while building a transform service.

The TransformService value created by this factory

The future response value.

-

Creates and returns a new Transform component, asynchronously

+

Creates and returns a new Transform component, asynchronously

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/actix_web_httpauth/extractors/bearer/index.html b/actix_web_httpauth/extractors/bearer/index.html index 134b6c9e2..9dfe2da0e 100644 --- a/actix_web_httpauth/extractors/bearer/index.html +++ b/actix_web_httpauth/extractors/bearer/index.html @@ -1,5 +1,5 @@ actix_web_httpauth::extractors::bearer - Rust -

Module actix_web_httpauth::extractors::bearer[][src]

Expand description

Extractor for the “Bearer” HTTP Authentication Scheme

+

Module actix_web_httpauth::extractors::bearer[][src]

Expand description

Extractor for the “Bearer” HTTP Authentication Scheme

Structs

Extractor for HTTP Bearer auth

BearerAuth extractor configuration.

diff --git a/actix_web_httpauth/extractors/bearer/struct.BearerAuth.html b/actix_web_httpauth/extractors/bearer/struct.BearerAuth.html index 3764da656..d67fc747d 100644 --- a/actix_web_httpauth/extractors/bearer/struct.BearerAuth.html +++ b/actix_web_httpauth/extractors/bearer/struct.BearerAuth.html @@ -1,5 +1,5 @@ BearerAuth in actix_web_httpauth::extractors::bearer - Rust -

Struct actix_web_httpauth::extractors::bearer::BearerAuth[][src]

pub struct BearerAuth(_);
Expand description

Extractor for HTTP Bearer auth

+

Struct actix_web_httpauth::extractors::bearer::BearerAuth[][src]

pub struct BearerAuth(_);
Expand description

Extractor for HTTP Bearer auth

Example

use actix_web_httpauth::extractors::bearer::BearerAuth;
 
@@ -26,16 +26,16 @@ response header.

) .service(web::resource("/index.html").route(web::get().to(index))); }
-

Implementations

Returns bearer token provided by client.

-

Trait Implementations

Future that resolves into extracted credentials type.

+

Implementations

Returns bearer token provided by client.

+

Trait Implementations

Future that resolves into extracted credentials type.

The associated error which can be returned.

-

Parse the authentication credentials from the actix’ ServiceRequest.

-

Returns a copy of the value. Read more

+

Parse the authentication credentials from the actix’ ServiceRequest.

+

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Future that resolves to a Self.

+

Formats the value using the given formatter. Read more

+

Future that resolves to a Self.

The associated error which can be returned.

-

Create a Self from request parts asynchronously.

+

Create a Self from request parts asynchronously.

Create a Self from request head asynchronously. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

diff --git a/actix_web_httpauth/extractors/bearer/struct.Config.html b/actix_web_httpauth/extractors/bearer/struct.Config.html index 8e1c6b25d..fde2bd450 100644 --- a/actix_web_httpauth/extractors/bearer/struct.Config.html +++ b/actix_web_httpauth/extractors/bearer/struct.Config.html @@ -1,19 +1,19 @@ Config in actix_web_httpauth::extractors::bearer - Rust -

Struct actix_web_httpauth::extractors::bearer::Config[][src]

pub struct Config(_);
Expand description

BearerAuth extractor configuration.

-

Implementations

Set challenge scope attribute.

+

Struct actix_web_httpauth::extractors::bearer::Config[][src]

pub struct Config(_);
Expand description

BearerAuth extractor configuration.

+

Implementations

Set challenge scope attribute.

The "scope" attribute is a space-delimited list of case-sensitive scope values indicating the required scope of the access token for accessing the requested resource.

-

Set challenge realm attribute.

+

Set challenge realm attribute.

The “realm” attribute indicates the scope of protection in the manner described in HTTP/1.1 RFC2617.

-

Trait Implementations

Performs the conversion.

-

Associated challenge type.

-

Convert the config instance into a HTTP challenge.

-

Returns a copy of the value. Read more

+

Trait Implementations

Performs the conversion.

+

Associated challenge type.

+

Convert the config instance into a HTTP challenge.

+

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Returns the “default value” for a type. Read more

+

Formats the value using the given formatter. Read more

+

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/actix_web_httpauth/extractors/struct.AuthenticationError.html b/actix_web_httpauth/extractors/struct.AuthenticationError.html index 7902582ed..b9918a5e5 100644 --- a/actix_web_httpauth/extractors/struct.AuthenticationError.html +++ b/actix_web_httpauth/extractors/struct.AuthenticationError.html @@ -2,12 +2,12 @@

Struct actix_web_httpauth::extractors::AuthenticationError[][src]

pub struct AuthenticationError<C: Challenge> { /* fields omitted */ }
Expand description

Authentication error returned by authentication extractors.

Different extractors may extend AuthenticationError implementation in order to provide access to inner challenge fields.

-

Implementations

Extended error customization for HTTP Bearer auth.

-

Attach Error to the current Authentication error.

+

Implementations

Extended error customization for HTTP Bearer auth.

+

Attach Error to the current Authentication error.

Error status code will be changed to the one provided by the kind Error.

-

Attach error description to the current Authentication error.

-

Attach error URI to the current Authentication error.

+

Attach error description to the current Authentication error.

+

Attach error URI to the current Authentication error.

It is up to implementor to provide properly formed absolute URI.

Creates new authentication error from the provided challenge.

By default returned error will resolve into the HTTP 401 status code.

diff --git a/actix_web_httpauth/extractors/trait.AuthExtractor.html b/actix_web_httpauth/extractors/trait.AuthExtractor.html index 8b8e7c2ae..5b50116bb 100644 --- a/actix_web_httpauth/extractors/trait.AuthExtractor.html +++ b/actix_web_httpauth/extractors/trait.AuthExtractor.html @@ -13,5 +13,5 @@ authentication scheme.

Associated Types

The associated error which can be returned.

Future that resolves into extracted credentials type.

Required methods

Parse the authentication credentials from the actix’ ServiceRequest.

-

Implementations on Foreign Types

Implementors

+

Implementations on Foreign Types

Implementors

\ No newline at end of file diff --git a/actix_web_httpauth/extractors/trait.AuthExtractorConfig.html b/actix_web_httpauth/extractors/trait.AuthExtractorConfig.html index 5134bd391..0b2ddc2ab 100644 --- a/actix_web_httpauth/extractors/trait.AuthExtractorConfig.html +++ b/actix_web_httpauth/extractors/trait.AuthExtractorConfig.html @@ -6,5 +6,5 @@ for the authentication extractors.

Associated Types

Associated challenge type.

Required methods

Convert the config instance into a HTTP challenge.

-

Implementors

+

Implementors

\ No newline at end of file diff --git a/actix_web_httpauth/headers/www_authenticate/bearer/struct.Bearer.html b/actix_web_httpauth/headers/www_authenticate/bearer/struct.Bearer.html index 5611bfd00..dd716110d 100644 --- a/actix_web_httpauth/headers/www_authenticate/bearer/struct.Bearer.html +++ b/actix_web_httpauth/headers/www_authenticate/bearer/struct.Bearer.html @@ -26,7 +26,7 @@ described in RFC 6750realm("Restricted area") .scope("openid profile email") .finish();
-

Trait Implementations

Performs the conversion.

+

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

diff --git a/actix_web_httpauth/middleware/index.html b/actix_web_httpauth/middleware/index.html index 62a0ec8d5..0443deae6 100644 --- a/actix_web_httpauth/middleware/index.html +++ b/actix_web_httpauth/middleware/index.html @@ -1,5 +1,5 @@ actix_web_httpauth::middleware - Rust -

Module actix_web_httpauth::middleware[][src]

Expand description

HTTP Authentication middleware.

+

Module actix_web_httpauth::middleware[][src]

Expand description

HTTP Authentication middleware.

Structs

Middleware for checking HTTP authentication.

diff --git a/actix_web_httpauth/middleware/struct.HttpAuthentication.html b/actix_web_httpauth/middleware/struct.HttpAuthentication.html index 86fe68d5b..fd678deb8 100644 --- a/actix_web_httpauth/middleware/struct.HttpAuthentication.html +++ b/actix_web_httpauth/middleware/struct.HttpAuthentication.html @@ -1,12 +1,12 @@ HttpAuthentication in actix_web_httpauth::middleware - Rust -

Struct actix_web_httpauth::middleware::HttpAuthentication[][src]

pub struct HttpAuthentication<T, F> where
    T: AuthExtractor
{ /* fields omitted */ }
Expand description

Middleware for checking HTTP authentication.

+

Struct actix_web_httpauth::middleware::HttpAuthentication[][src]

pub struct HttpAuthentication<T, F> where
    T: AuthExtractor
{ /* fields omitted */ }
Expand description

Middleware for checking HTTP authentication.

If there is no Authorization header in the request, this middleware returns an error immediately, without calling the F callback.

Otherwise, it will pass both the request and the parsed credentials into it. In case of successful validation F callback is required to return the ServiceRequest back.

-

Implementations

Construct HttpAuthentication middleware with the provided auth extractor T and +

Implementations

Construct HttpAuthentication middleware with the provided auth extractor T and validation callback F.

-

Construct HttpAuthentication middleware for the HTTP “Basic” authentication scheme.

+

Construct HttpAuthentication middleware for the HTTP “Basic” authentication scheme.

Example
// In this example validator returns immediately, but since it is required to return
 // anything that implements `IntoFuture` trait, it can be extended to query database or to
@@ -20,7 +20,7 @@ validation callback F.

} let middleware = HttpAuthentication::basic(validator);
-

Construct HttpAuthentication middleware for the HTTP “Bearer” authentication scheme.

+

Construct HttpAuthentication middleware for the HTTP “Bearer” authentication scheme.

Example
async fn validator(req: ServiceRequest, credentials: BearerAuth) -> Result<ServiceRequest, Error> {
     if credentials.token() == "mF_9.B5f-4.1JqM" {
@@ -36,15 +36,15 @@ validation callback F.

} let middleware = HttpAuthentication::bearer(validator);
-

Trait Implementations

Returns a copy of the value. Read more

+

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Responses produced by the service.

+

Formats the value using the given formatter. Read more

+

Responses produced by the service.

Errors produced by the service.

The TransformService value created by this factory

Errors produced while building a transform service.

The future response value.

-

Creates and returns a new Transform component, asynchronously

+

Creates and returns a new Transform component, asynchronously

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/src/actix_cors/builder.rs.html b/src/actix_cors/builder.rs.html index fdf4e8fd5..782a73941 100644 --- a/src/actix_cors/builder.rs.html +++ b/src/actix_cors/builder.rs.html @@ -661,6 +661,7 @@ collections::HashSet, convert::TryInto, error::Error as StdError, iter::FromIterator, rc::Rc, }; +use actix_utils::future::{self, Ready}; use actix_web::{ body::MessageBody, dev::{RequestHead, Service, ServiceRequest, ServiceResponse, Transform}, @@ -668,7 +669,6 @@ http::{self, header::HeaderName, Error as HttpError, HeaderValue, Method, Uri}, Either, }; -use futures_util::future::{self, Ready}; use log::error; use once_cell::sync::Lazy; use smallvec::smallvec; diff --git a/src/actix_cors/middleware.rs.html b/src/actix_cors/middleware.rs.html index db2d4750c..73a55b396 100644 --- a/src/actix_cors/middleware.rs.html +++ b/src/actix_cors/middleware.rs.html @@ -239,8 +239,10 @@ 238 239 240 +241
use std::{collections::HashSet, convert::TryInto, error::Error as StdError, rc::Rc};
 
+use actix_utils::future::{ok, Either, Ready};
 use actix_web::{
     body::{AnyBody, MessageBody},
     dev::{Service, ServiceRequest, ServiceResponse},
@@ -251,7 +253,7 @@
     },
     HttpResponse,
 };
-use futures_util::future::{ok, Either, FutureExt as _, LocalBoxFuture, Ready, TryFutureExt as _};
+use futures_util::future::{FutureExt as _, LocalBoxFuture, TryFutureExt as _};
 use log::debug;
 
 use crate::{builder::intersperse_header_values, AllOrSome, Inner};
@@ -396,7 +398,7 @@
         if self.inner.preflight && req.method() == Method::OPTIONS {
             let inner = Rc::clone(&self.inner);
             let res = Self::handle_preflight(&inner, req);
-            Either::Left(ok(res))
+            Either::left(ok(res))
         } else {
             let origin = req.headers().get(header::ORIGIN).cloned();
 
@@ -404,7 +406,7 @@
                 // Only check requests with a origin header.
                 if let Err(err) = self.inner.validate_origin(req.head()) {
                     debug!("origin validation failed; inner service is not called");
-                    return Either::Left(ok(req.error_response(err)));
+                    return Either::left(ok(req.error_response(err)));
                 }
             }
 
@@ -424,7 +426,7 @@
             .map_ok(|res| res.map_body(|_, body| AnyBody::new_boxed(body)))
             .boxed_local();
 
-            Either::Right(res)
+            Either::right(res)
         }
     }
 }
diff --git a/src/actix_identity/cookie.rs.html b/src/actix_identity/cookie.rs.html
index 01edb9132..66f9841d4 100644
--- a/src/actix_identity/cookie.rs.html
+++ b/src/actix_identity/cookie.rs.html
@@ -823,7 +823,7 @@
 822
 
use std::{rc::Rc, time::SystemTime};
 
-use futures_util::future::{ready, Ready};
+use actix_utils::future::{ready, Ready};
 use serde::{Deserialize, Serialize};
 use time::Duration;
 
diff --git a/src/actix_identity/identity.rs.html b/src/actix_identity/identity.rs.html
index 3de0bf399..d00abd783 100644
--- a/src/actix_identity/identity.rs.html
+++ b/src/actix_identity/identity.rs.html
@@ -103,7 +103,7 @@
     dev::{Extensions, Payload},
     Error, FromRequest, HttpRequest,
 };
-use futures_util::future::{ready, Ready};
+use actix_utils::future::{ready, Ready};
 
 pub(crate) struct IdentityItem {
     pub(crate) id: Option<String>,
diff --git a/src/actix_identity/middleware.rs.html b/src/actix_identity/middleware.rs.html
index 0ddcceaac..0518ee7e3 100644
--- a/src/actix_identity/middleware.rs.html
+++ b/src/actix_identity/middleware.rs.html
@@ -171,14 +171,17 @@
 170
 171
 172
+173
+174
 
use std::{error::Error as StdError, rc::Rc};
 
+use actix_utils::future::{ready, Ready};
 use actix_web::{
     body::{AnyBody, MessageBody},
     dev::{Service, ServiceRequest, ServiceResponse, Transform},
     Error, HttpMessage, Result,
 };
-use futures_util::future::{ready, FutureExt as _, LocalBoxFuture, Ready, TryFutureExt as _};
+use futures_util::future::{FutureExt as _, LocalBoxFuture, TryFutureExt as _};
 
 use crate::{identity::IdentityItem, IdentityPolicy};
 
@@ -302,7 +305,8 @@
 
     #[actix_rt::test]
     async fn test_borrowed_mut_error() {
-        use futures_util::future::{lazy, ok, Ready};
+        use actix_utils::future::{ok, Ready};
+        use futures_util::future::lazy;
 
         struct Ident;
         impl IdentityPolicy for Ident {
diff --git a/src/actix_session/cookie.rs.html b/src/actix_session/cookie.rs.html
index 809741e6d..96acbe260 100644
--- a/src/actix_session/cookie.rs.html
+++ b/src/actix_session/cookie.rs.html
@@ -562,10 +562,12 @@
 561
 562
 563
+564
 
//! Cookie based sessions. See docs for [`CookieSession`].
 
 use std::{collections::HashMap, error::Error as StdError, rc::Rc};
 
+use actix_utils::future::{ok, Ready};
 use actix_web::{
     body::{AnyBody, MessageBody},
     cookie::{Cookie, CookieJar, Key, SameSite},
@@ -574,7 +576,7 @@
     Error, ResponseError,
 };
 use derive_more::Display;
-use futures_util::future::{ok, FutureExt as _, LocalBoxFuture, Ready};
+use futures_util::future::{FutureExt as _, LocalBoxFuture};
 use serde_json::error::Error as JsonError;
 use time::{Duration, OffsetDateTime};
 
diff --git a/src/actix_session/lib.rs.html b/src/actix_session/lib.rs.html
index b584da5d8..8417e7366 100644
--- a/src/actix_session/lib.rs.html
+++ b/src/actix_session/lib.rs.html
@@ -450,11 +450,11 @@
     rc::Rc,
 };
 
+use actix_utils::future::{ok, Ready};
 use actix_web::{
     dev::{Extensions, Payload, RequestHead, ServiceRequest, ServiceResponse},
     Error, FromRequest, HttpMessage, HttpRequest,
 };
-use futures_util::future::{ok, Ready};
 use serde::{de::DeserializeOwned, Serialize};
 
 #[cfg(feature = "cookie-session")]
diff --git a/src/actix_web_httpauth/extractors/basic.rs.html b/src/actix_web_httpauth/extractors/basic.rs.html
index b72fea68d..f4f24ef6c 100644
--- a/src/actix_web_httpauth/extractors/basic.rs.html
+++ b/src/actix_web_httpauth/extractors/basic.rs.html
@@ -151,10 +151,10 @@
 
 use std::borrow::Cow;
 
+use actix_utils::future::{ready, Ready};
 use actix_web::dev::{Payload, ServiceRequest};
 use actix_web::http::header::Header;
 use actix_web::{FromRequest, HttpRequest};
-use futures_util::future::{ready, Ready};
 
 use super::config::AuthExtractorConfig;
 use super::errors::AuthenticationError;
diff --git a/src/actix_web_httpauth/extractors/bearer.rs.html b/src/actix_web_httpauth/extractors/bearer.rs.html
index c2dc1285a..f03defcb3 100644
--- a/src/actix_web_httpauth/extractors/bearer.rs.html
+++ b/src/actix_web_httpauth/extractors/bearer.rs.html
@@ -173,24 +173,20 @@
 172
 173
 174
-175
-176
 
//! Extractor for the "Bearer" HTTP Authentication Scheme
 
-use std::borrow::Cow;
-use std::default::Default;
+use std::{borrow::Cow, default::Default};
 
-use actix_web::dev::{Payload, ServiceRequest};
-use actix_web::http::header::Header;
-use actix_web::{FromRequest, HttpRequest};
-use futures_util::future::{ready, Ready};
+use actix_utils::future::{ready, Ready};
+use actix_web::{
+    dev::{Payload, ServiceRequest},
+    http::header::Header,
+    FromRequest, HttpRequest,
+};
 
-use super::config::AuthExtractorConfig;
-use super::errors::AuthenticationError;
-use super::AuthExtractor;
-use crate::headers::authorization;
-use crate::headers::www_authenticate::bearer;
+use super::{config::AuthExtractorConfig, errors::AuthenticationError, AuthExtractor};
 pub use crate::headers::www_authenticate::bearer::Error;
+use crate::headers::{authorization, www_authenticate::bearer};
 
 /// [BearerAuth](./struct/BearerAuth.html) extractor configuration.
 #[derive(Debug, Clone, Default)]
diff --git a/src/actix_web_httpauth/extractors/mod.rs.html b/src/actix_web_httpauth/extractors/mod.rs.html
index 5e5c3e51a..457dd9932 100644
--- a/src/actix_web_httpauth/extractors/mod.rs.html
+++ b/src/actix_web_httpauth/extractors/mod.rs.html
@@ -112,7 +112,7 @@
 
 use actix_web::dev::ServiceRequest;
 use actix_web::Error;
-use futures_util::ready;
+use futures_core::ready;
 use pin_project_lite::pin_project;
 
 pub mod basic;
diff --git a/src/actix_web_httpauth/middleware.rs.html b/src/actix_web_httpauth/middleware.rs.html
index 8864bffa6..71c362f90 100644
--- a/src/actix_web_httpauth/middleware.rs.html
+++ b/src/actix_web_httpauth/middleware.rs.html
@@ -359,10 +359,19 @@
 358
 359
 360
+361
+362
+363
 
//! HTTP Authentication middleware.
 
 use std::{
-    error::Error as StdError, future::Future, marker::PhantomData, pin::Pin, rc::Rc, sync::Arc,
+    error::Error as StdError,
+    future::Future,
+    marker::PhantomData,
+    pin::Pin,
+    rc::Rc,
+    sync::Arc,
+    task::{Context, Poll},
 };
 
 use actix_web::{
@@ -370,11 +379,8 @@
     dev::{Service, ServiceRequest, ServiceResponse, Transform},
     Error,
 };
-use futures_util::{
-    future::{self, FutureExt as _, LocalBoxFuture, TryFutureExt as _},
-    ready,
-    task::{Context, Poll},
-};
+use futures_core::ready;
+use futures_util::future::{self, FutureExt as _, LocalBoxFuture, TryFutureExt as _};
 
 use crate::extractors::{basic, bearer, AuthExtractor};