1
0
mirror of https://github.com/actix/actix-website synced 2025-06-29 08:14:58 +02:00

Merge pull request #95 from snoyberg/master

Add Responder to use statement
This commit is contained in:
Cameron Dershem
2019-07-05 22:30:13 -04:00
committed by GitHub

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");