diff options
Diffstat (limited to '')
-rw-r--r-- | askama_actix/src/lib.rs | 4 | ||||
-rw-r--r-- | askama_shared/src/helpers/mod.rs | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/askama_actix/src/lib.rs b/askama_actix/src/lib.rs index 71af8cc..afc3ea3 100644 --- a/askama_actix/src/lib.rs +++ b/askama_actix/src/lib.rs @@ -2,12 +2,10 @@ use actix_web::body::BoxBody; use actix_web::http::StatusCode; -use actix_web::HttpResponseBuilder; +use actix_web::{HttpResponse, HttpResponseBuilder, ResponseError}; use askama::mime::extension_to_mime_type; pub use askama::*; -use actix_web::HttpResponse; - pub trait TemplateToResponse { fn to_response(&self) -> HttpResponse<BoxBody>; } diff --git a/askama_shared/src/helpers/mod.rs b/askama_shared/src/helpers/mod.rs index 87316fd..79a1ada 100644 --- a/askama_shared/src/helpers/mod.rs +++ b/askama_shared/src/helpers/mod.rs @@ -1,5 +1,4 @@ -use std::iter::Enumerate; -use std::iter::Peekable; +use std::iter::{Enumerate, Peekable}; pub struct TemplateLoop<I> where |