summaryrefslogtreecommitdiffstats
path: root/headers/src/header_components
diff options
context:
space:
mode:
Diffstat (limited to 'headers/src/header_components')
-rw-r--r--headers/src/header_components/mailbox_list.rs2
-rw-r--r--headers/src/header_components/phrase.rs2
2 files changed, 2 insertions, 2 deletions
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())