mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
Check code with rustfmt not to introduce format commits (#88)
This commit is contained in:
@ -5,8 +5,7 @@ use actix_web_httpauth::middleware::HttpAuthentication;
|
||||
#[actix_rt::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
HttpServer::new(|| {
|
||||
let auth =
|
||||
HttpAuthentication::basic(|req, _credentials| async { Ok(req) });
|
||||
let auth = HttpAuthentication::basic(|req, _credentials| async { Ok(req) });
|
||||
App::new()
|
||||
.wrap(middleware::Logger::default())
|
||||
.wrap(auth)
|
||||
|
Reference in New Issue
Block a user