summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Korber <philippkorber@gmail.com>2018-05-31 16:41:35 +0200
committerPhilipp Korber <philippkorber@gmail.com>2018-05-31 16:41:35 +0200
commit16e57311934a4256b0b6d6f83be55b714bf9ac0f (patch)
tree589920d29562f03f1d28e2f26df06e9089dd931e
parent7914eace152ade06cb6b304dcd20c7edf0cfe58d (diff)
chore(TemplateEngine): removed D: InspectEmbeddedResources from trait
The bound is only needed for the mechanics done before calling the TemplateEninge.
-rw-r--r--src/builder_extension.rs1
-rw-r--r--src/template_engine.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/builder_extension.rs b/src/builder_extension.rs
index fb59bc3..efc710f 100644
--- a/src/builder_extension.rs
+++ b/src/builder_extension.rs
@@ -12,6 +12,7 @@ use ::error::{ExtendedBuilderError, ExtendedBuilderErrorKind};
/// A mail body likely created by a template engine
+#[derive(Debug)]
pub struct BodyPart {
/// a body created by a template
pub body_resource: Resource,
diff --git a/src/template_engine.rs b/src/template_engine.rs
index d522ad4..58a503f 100644
--- a/src/template_engine.rs
+++ b/src/template_engine.rs
@@ -22,7 +22,7 @@ use ::builder_extension::BodyPart;
/// current server configuration, preventing the need for the
/// template engine to store a handle to it/copy of it itself.
pub trait TemplateEngine<C, D>
- where C: Context, D: InspectEmbeddedResources
+ where C: Context
{
type TemplateId: ?Sized + ToOwned;
type Error: Fail;