1
0
mirror of https://github.com/actix/actix-website synced 2024-11-27 18:12:57 +01:00

fix extraction in app state extract examples

fixes #167
This commit is contained in:
Rob Ede 2020-04-06 02:05:07 +01:00
parent a56649a687
commit 34ae647fd5
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ async fn main() -> std::io::Result<()> {
HttpServer::new(move || {
App::new()
.app_data(data.clone())
.data(data.clone())
.route("/", web::to(show_count))
.route("/add", web::to(add_one))
})

View File

@ -29,7 +29,7 @@ async fn main() -> std::io::Result<()> {
HttpServer::new(move || {
App::new()
.app_data(data.clone())
.data(data.clone())
.route("/", web::to(show_count))
.route("/add", web::to(add_one))
})