1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

Fix/suppress warnings

This commit is contained in:
Yuki Okushi
2020-04-03 16:14:30 +09:00
parent 0f1568bd3c
commit 8f1c0a85cf
19 changed files with 29 additions and 32 deletions

View File

@ -27,7 +27,7 @@ pub async fn index(
let rendered = tmpl
.render("index.html.tera", &context)
.map_err(|e| error::ErrorInternalServerError(e))?;
.map_err(error::ErrorInternalServerError)?;
Ok(HttpResponse::Ok().body(rendered))
}

View File

@ -1,4 +1,3 @@
use diesel;
use diesel::pg::PgConnection;
use diesel::prelude::*;
use serde::Serialize;