1
0
mirror of https://github.com/actix/actix-website synced 2024-11-24 08:43:01 +01: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
commit bb0fdaf1e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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