aboutsummaryrefslogtreecommitdiff
path: root/src/pages/repo/about.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-01-23 22:29:46 +0100
committerKatharina Fey <kookie@spacekookie.de>2020-01-23 22:29:46 +0100
commit5db4c57b0360f6d6f9d6553d9b438a804ad441ae (patch)
tree8c9b91df4e6bafca0fc058613cd8eddd788f0a95 /src/pages/repo/about.rs
parent5e16c6400307d93e90ced300efb3ee4eb76c0524 (diff)
Updating to actix 2.0.0 and adding 404 handlerfn-verify-9324832
Diffstat (limited to 'src/pages/repo/about.rs')
-rw-r--r--src/pages/repo/about.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/pages/repo/about.rs b/src/pages/repo/about.rs
index adfa46e..8797edd 100644
--- a/src/pages/repo/about.rs
+++ b/src/pages/repo/about.rs
@@ -1,5 +1,3 @@
-//! The "repository/about" subpage
-
use actix_web::{web, HttpRequest, HttpResponse, Result};
use askama::Template;
@@ -16,7 +14,8 @@ struct Repo<'a> {
num_contributors: usize,
}
-pub fn render(req: HttpRequest, path: web::Path<(String)>) -> Result<HttpResponse> {
+/// Renders the "repository/about" subpage
+pub async fn render(req: HttpRequest, path: web::Path<String>) -> Result<HttpResponse> {
println!("Rendering path: {:#?}", path);
dbg!(req);
@@ -31,6 +30,6 @@ pub fn render(req: HttpRequest, path: web::Path<(String)>) -> Result<HttpRespons
num_contributors: 3,
}
.render()
- .unwrap();
+ .unwrap();
Ok(HttpResponse::Ok().content_type("text/html").body(repo))
}