1
0
mirror of https://github.com/actix/examples synced 2025-06-29 02:10:36 +02:00

part3: Update dependencies

This commit is contained in:
Yuki Okushi
2020-04-08 01:18:52 +09:00
parent 32d821d321
commit b84e1d9fb4
14 changed files with 20 additions and 20 deletions

View File

@ -13,7 +13,7 @@ use std::io;
// Macro documentation can be found in the actix_web_codegen crate
#[get("/")]
async fn index(hb: web::Data<Handlebars>) -> HttpResponse {
async fn index(hb: web::Data<Handlebars<'_>>) -> HttpResponse {
let data = json!({
"name": "Handlebars"
});
@ -24,7 +24,7 @@ async fn index(hb: web::Data<Handlebars>) -> HttpResponse {
#[get("/{user}/{data}")]
async fn user(
hb: web::Data<Handlebars>,
hb: web::Data<Handlebars<'_>>,
info: web::Path<(String, String)>,
) -> HttpResponse {
let data = json!({