summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/Cargo.toml8
-rw-r--r--template/src/lib.rs2
2 files changed, 5 insertions, 5 deletions
diff --git a/template/Cargo.toml b/template/Cargo.toml
index 65d1e14..8aba450 100644
--- a/template/Cargo.toml
+++ b/template/Cargo.toml
@@ -18,13 +18,13 @@ handlebars-bindings = ["handlebars"]
features = [ "handlebars-bindings" ]
[dependencies]
-mail-core = { version="0.6.0", features=["serde-impl"] }
-mail-internals = "0.2.0"
-mail-headers = { version="0.6.0", features=["serde-impl"] }
+mail-core = { version="0.6.1", features=["serde-impl"] }
+mail-internals = "0.2.3"
+mail-headers = { version="0.6.4", features=["serde-impl"] }
failure = "0.1.1"
futures = "0.1.14"
-vec1 = { version="1.1", features=["serde"]}
+vec1 = { version="1.3.0", features=["serde"]}
soft-ascii-string = "1.0"
serde = { version="1", features=["derive"] }
toml = "0.4.8"
diff --git a/template/src/lib.rs b/template/src/lib.rs
index 7a96b06..be3ce45 100644
--- a/template/src/lib.rs
+++ b/template/src/lib.rs
@@ -300,7 +300,7 @@ impl<TE, D> TemplateExt<TE, D> for Template<TE>
let parts = MailParts {
//UNWRAP_SAFE (complexly mapping a Vec1 is safe)
- alternative_bodies: Vec1::from_vec(bodies).unwrap(),
+ alternative_bodies: Vec1::try_from_vec(bodies).unwrap(),
inline_embeddings: inline_embeddings_vec,
attachments
};