Fix function signature

https://github.com/actix/actix-web/pull/2601
This commit is contained in:
Valentin Brandl 2022-02-01 19:16:26 +01:00
parent d78b349ca1
commit 2507c24de7

View File

@ -462,11 +462,11 @@ async fn async_p404(repo_count: web::Data<AtomicUsize>) -> Result<HttpResponse>
p404(repo_count) p404(repo_count)
} }
fn css() -> HttpResponse { async fn css() -> HttpResponse {
HttpResponse::Ok().content_type("text/css").body(CSS) HttpResponse::Ok().content_type("text/css").body(CSS)
} }
fn favicon32() -> HttpResponse { async fn favicon32() -> HttpResponse {
HttpResponse::Ok().content_type("image/png").body(FAVICON) HttpResponse::Ok().content_type("image/png").body(FAVICON)
} }