aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2022-01-05 19:21:55 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-01-06 13:05:24 +0100
commite34a81ccb966e58e97cb24b1b60141e14f073924 (patch)
tree86ff67887769ed257e963d781dbebdd8e4ec38ed
parent16da7e366323090fa65ebf1c9990193c9eb8ef9c (diff)
downloadaskama-e34a81ccb966e58e97cb24b1b60141e14f073924.tar.gz
askama-e34a81ccb966e58e97cb24b1b60141e14f073924.tar.bz2
askama-e34a81ccb966e58e97cb24b1b60141e14f073924.zip
Combine imports from the same module
-rw-r--r--askama_actix/src/lib.rs4
-rw-r--r--askama_shared/src/helpers/mod.rs3
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