summaryrefslogtreecommitdiffstats
path: root/headers
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 /headers
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 'headers')
-rw-r--r--headers/Cargo.toml6
-rw-r--r--headers/src/header_components/mailbox_list.rs2
-rw-r--r--headers/src/header_components/phrase.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/headers/Cargo.toml b/headers/Cargo.toml
index 60d4a44..5be9f73 100644
--- a/headers/Cargo.toml
+++ b/headers/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "mail-headers"
description = "[mail/headers] header parts for the mail crate (inkl. header map and standard header impl)"
-version = "0.6.4"
+version = "0.6.5"
authors = ["Philipp Korber <philippkorber@gmail.com>"]
documentation = "https://docs.rs/mail-headers"
keywords = []
@@ -17,13 +17,13 @@ traceing = [ "mail-internals/traceing" ]
features = [ "serde-impl" ]
[dependencies]
-mail-internals = "0.2.2"
+mail-internals = "0.2.3"
failure = "0.1"
owning_ref = "0.4"
nom = "3.1.0"
soft-ascii-string = "1"
quoted-string = "0.6"
-vec1 = "1"
+vec1 = "1.3.0"
chrono = "0.4"
total-order-multi-map = "0.4.5"
serde = { version="1.0", optional=true, features=["derive"] }
diff --git a/headers/src/header_components/mailbox_list.rs b/headers/src/header_components/mailbox_list.rs
index 68a9a30..5923008 100644
--- a/headers/src/header_components/mailbox_list.rs
+++ b/headers/src/header_components/mailbox_list.rs
@@ -147,7 +147,7 @@ macro_rules! impl_header_try_from_tuple {
)*
Ok( MailboxList(
//UNWRAP_SAFE: len 0 is not implemented with the macro
- $crate::vec1::Vec1::from_vec(out).unwrap()
+ $crate::vec1::Vec1::try_from_vec(out).unwrap()
) )
}
}
diff --git a/headers/src/header_components/phrase.rs b/headers/src/header_components/phrase.rs
index 0d58d2c..10f56c5 100644
--- a/headers/src/header_components/phrase.rs
+++ b/headers/src/header_components/phrase.rs
@@ -77,7 +77,7 @@ impl Phrase {
}
}
- let mut words = Vec1::from_vec(words)
+ let mut words = Vec1::try_from_vec(words)
.map_err( |_| ComponentCreationError
::from_parent(Size0Error, "Phrase")
.with_str_context(input.as_str())