1
0
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:
Yuki Okushi
2020-07-21 03:51:51 +09:00
committed by GitHub
parent e5fe8d42fa
commit 7e6bdf2eb2
14 changed files with 59 additions and 80 deletions

View File

@ -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)