From 5db4c57b0360f6d6f9d6553d9b438a804ad441ae Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Thu, 23 Jan 2020 22:29:46 +0100 Subject: Updating to actix 2.0.0 and adding 404 handler --- src/pages/repo/about.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/pages/repo/about.rs') 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 { +/// Renders the "repository/about" subpage +pub async fn render(req: HttpRequest, path: web::Path) -> Result { println!("Rendering path: {:#?}", path); dbg!(req); @@ -31,6 +30,6 @@ pub fn render(req: HttpRequest, path: web::Path<(String)>) -> Result