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

Consistent import formatting (#237)

This commit is contained in:
Luca Palmieri
2022-03-29 11:46:13 +01:00
committed by GitHub
parent aebf9ccf58
commit 8fd1772d5e
14 changed files with 18 additions and 21 deletions

View File

@ -65,9 +65,10 @@ impl<C: 'static + Challenge> ResponseError for AuthenticationError<C> {
#[cfg(test)]
mod tests {
use actix_web::Error;
use super::*;
use crate::headers::www_authenticate::basic::Basic;
use actix_web::Error;
#[test]
fn test_status_code_is_preserved_across_error_conversions() {

View File

@ -239,15 +239,16 @@ where
#[cfg(test)]
mod tests {
use super::*;
use crate::extractors::basic::BasicAuth;
use crate::extractors::bearer::BearerAuth;
use actix_service::{into_service, Service};
use actix_web::error::ErrorForbidden;
use actix_web::http::StatusCode;
use actix_web::test::TestRequest;
use actix_web::{error, web, App, HttpResponse};
use super::*;
use crate::extractors::basic::BasicAuth;
use crate::extractors::bearer::BearerAuth;
/// This is a test for https://github.com/actix/actix-extras/issues/10
#[actix_web::test]
async fn test_middleware_panic() {