mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
Fix/suppress warnings
This commit is contained in:
@ -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))
|
||||
}
|
||||
|
@ -1,4 +1,3 @@
|
||||
use diesel;
|
||||
use diesel::pg::PgConnection;
|
||||
use diesel::prelude::*;
|
||||
use serde::Serialize;
|
||||
|
Reference in New Issue
Block a user