From b806d2254dff2e0db8a22141957a848ecbef77c3 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 1 Apr 2019 10:47:15 +0200 Subject: [PATCH] Update main.rs Switch the position of a rogue parenthesis. --- template_askama/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template_askama/src/main.rs b/template_askama/src/main.rs index b07879ab..f1060f8c 100644 --- a/template_askama/src/main.rs +++ b/template_askama/src/main.rs @@ -31,7 +31,7 @@ fn index(query: web::Query>) -> Result { fn main() -> std::io::Result<()> { // start http server HttpServer::new(move || { - App::new().service(web::resource("/").route(web::get()).to(index)) + App::new().service(web::resource("/").route(web::get().to(index))) }) .bind("127.0.0.1:8080")? .run()