1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 18:37:41 +02:00

apply imports_granularity fmt rule

This commit is contained in:
Rob Ede
2022-09-11 21:55:40 +01:00
parent 339b81e843
commit 1561bda822
17 changed files with 59 additions and 56 deletions

View File

@ -5,5 +5,4 @@ pub mod bearer;
mod config;
mod errors;
pub use self::config::AuthExtractorConfig;
pub use self::errors::AuthenticationError;
pub use self::{config::AuthExtractorConfig, errors::AuthenticationError};

View File

@ -4,6 +4,8 @@ mod errors;
mod header;
mod scheme;
pub use self::errors::ParseError;
pub use self::header::Authorization;
pub use self::scheme::{basic::Basic, bearer::Bearer, Scheme};
pub use self::{
errors::ParseError,
header::Authorization,
scheme::{basic::Basic, bearer::Bearer, Scheme},
};

View File

@ -5,8 +5,7 @@ use actix_web::{
web::{BufMut, Bytes, BytesMut},
};
use super::super::Challenge;
use super::{BearerBuilder, Error};
use super::{super::Challenge, BearerBuilder, Error};
use crate::utils;
/// Challenge for [`WWW-Authenticate`] header with HTTP Bearer auth scheme, described in [RFC 6750].

View File

@ -4,9 +4,7 @@ mod builder;
mod challenge;
mod errors;
pub use self::builder::BearerBuilder;
pub use self::challenge::Bearer;
pub use self::errors::Error;
pub use self::{builder::BearerBuilder, challenge::Bearer, errors::Error};
#[cfg(test)]
mod tests {

View File

@ -3,5 +3,7 @@
mod challenge;
mod header;
pub use self::challenge::{basic, bearer, Challenge};
pub use self::header::WwwAuthenticate;
pub use self::{
challenge::{basic, bearer, Challenge},
header::WwwAuthenticate,
};