mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
fmt with new width
This commit is contained in:
@ -4,10 +4,7 @@ use actix_web::{middleware, web, App, Error, HttpServer};
|
||||
use actix_web_httpauth::extractors::basic::BasicAuth;
|
||||
use actix_web_httpauth::middleware::HttpAuthentication;
|
||||
|
||||
async fn validator(
|
||||
req: ServiceRequest,
|
||||
_credentials: BasicAuth,
|
||||
) -> Result<ServiceRequest, Error> {
|
||||
async fn validator(req: ServiceRequest, _credentials: BasicAuth) -> Result<ServiceRequest, Error> {
|
||||
Ok(req)
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,6 @@
|
||||
use actix_cors::Cors;
|
||||
use actix_web::{dev::ServiceRequest, get, App, Error, HttpResponse, HttpServer};
|
||||
use actix_web_httpauth::{
|
||||
extractors::bearer::BearerAuth, middleware::HttpAuthentication,
|
||||
};
|
||||
use actix_web_httpauth::{extractors::bearer::BearerAuth, middleware::HttpAuthentication};
|
||||
|
||||
async fn ok_validator(
|
||||
req: ServiceRequest,
|
||||
|
Reference in New Issue
Block a user