diff options
author | Philipp Korber <p.korber@1aim.com> | 2018-11-20 15:47:49 +0100 |
---|---|---|
committer | Philipp Korber <p.korber@1aim.com> | 2018-11-20 15:47:49 +0100 |
commit | b2bdb806ce2835f6b31537d2821ec9f1effe2e15 (patch) | |
tree | bcdd26594a42646f3fbc86c42641e57525360828 | |
parent | d750524ad8094fcd6745ddbefaacb694d7c77178 (diff) |
chore(TemplateEngine) removed associated error type
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -46,13 +46,15 @@ mod base_dir; mod path_rebase; mod additional_cid; +// #[cfg(feature="handlebars")] +// pub mod handlebars; + pub use self::base_dir::*; pub use self::path_rebase::*; pub use self::additional_cid::*; pub trait TemplateEngine: Sized { type Id: Debug; - type Error: Fail; type LazyBodyTemplate: PathRebaseable + Debug + Send + Serialize + for<'a> Deserialize<'a>; @@ -115,7 +117,7 @@ pub trait UseTemplateEngine<D>: TemplateEngine { id: &'r Self::Id, data: &'r Bound<'a, Self::PreparedData>, additional_cids: AdditionalCIds<'r> - ) -> Result<String, Self::Error>; + ) -> Result<String, Error>; } #[derive(Debug)] |