From 5ff8c61e82af36b95064de1788ad2a622255a447 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Fri, 5 Jul 2019 11:39:34 +0300 Subject: [PATCH] Add Responder to use statement This matches the example code in examples/main-example/src/main.rs, and allows the code on the homepage to work. --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index d0e1648..fb972e8 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -39,7 +39,7 @@
- {{ highlight `use actix_web::{web, App, HttpRequest, HttpServer}; + {{ highlight `use actix_web::{web, App, HttpRequest, HttpServer, Responder}; fn greet(req: HttpRequest) -> impl Responder { let name = req.match_info().get("name").unwrap_or("World");