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