summaryrefslogtreecommitdiffstats
path: root/src/addrparse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/addrparse.rs')
-rw-r--r--src/addrparse.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/addrparse.rs b/src/addrparse.rs
index 8995c93..99fb1a9 100644
--- a/src/addrparse.rs
+++ b/src/addrparse.rs
@@ -130,6 +130,12 @@ impl fmt::Display for MailAddrList {
}
}
+impl From<Vec<MailAddr>> for MailAddrList {
+ fn from(addrs: Vec<MailAddr>) -> Self {
+ MailAddrList(addrs)
+ }
+}
+
impl MailAddrList {
/// Count the number of `SingleInfo` instances in this list of addresses.
pub fn count_addrs(&self) -> usize {