mirror of
https://github.com/actix/actix-website
synced 2024-11-27 18:12:57 +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:
parent
30369c2a67
commit
5ff8c61e82
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user