From 2507c24de7e58d01c7cb4cb92d13b1e959dd10af Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Tue, 1 Feb 2022 19:16:26 +0100 Subject: [PATCH] Fix function signature https://github.com/actix/actix-web/pull/2601 --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 301b000..ccc58fe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -462,11 +462,11 @@ async fn async_p404(repo_count: web::Data) -> Result p404(repo_count) } -fn css() -> HttpResponse { +async fn css() -> HttpResponse { HttpResponse::Ok().content_type("text/css").body(CSS) } -fn favicon32() -> HttpResponse { +async fn favicon32() -> HttpResponse { HttpResponse::Ok().content_type("image/png").body(FAVICON) }