1
0
mirror of https://github.com/actix/actix-website synced 2024-11-30 19:14:36 +01:00

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.
This commit is contained in:
Michael Snoyman 2019-07-05 11:39:34 +03:00
parent 30369c2a67
commit 5ff8c61e82
No known key found for this signature in database
GPG Key ID: A048E8C057E86876

View File

@ -39,7 +39,7 @@
</div>
<div class="col-md-8">
<div class="actix-content">
{{ 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");