summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorPhilipp Korber <p.korber@1aim.com>2019-03-26 16:23:16 +0100
committerPhilipp Korber <p.korber@dac.eu>2019-10-11 16:33:19 +0200
commit9385e2eb4e602e8f8a24512ae99952b90cf82c39 (patch)
treed982bd8b4e56329b6f6a2725273973cffaf83416 /template
parent13c6540c96a1e64e069ba0d5b9509f583d40100d (diff)
chore(deps): updated deps
- make all parts which use vec1 depend on v1.3.0 (and use `try_from_vec`) - make all parts which use mail-internals depend on v0.2.3 (which has an important bug fix)
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
};