summaryrefslogtreecommitdiff
path: root/melib/src/email/address.rs
diff options
context:
space:
mode:
Diffstat (limited to 'melib/src/email/address.rs')
-rw-r--r--melib/src/email/address.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/melib/src/email/address.rs b/melib/src/email/address.rs
index a9c7d078..4c22c43c 100644
--- a/melib/src/email/address.rs
+++ b/melib/src/email/address.rs
@@ -262,7 +262,7 @@ impl Address {
let email = self.get_email();
let (local_part, domain) =
match super::parser::address::addr_spec_raw(email.as_bytes())
- .map_err(Into::<MeliError>::into)
+ .map_err(Into::<Error>::into)
.and_then(|(_, (l, d))| {
Ok((String::from_utf8(l.into())?, String::from_utf8(d.into())?))
}) {
@@ -368,7 +368,7 @@ impl core::fmt::Debug for Address {
}
impl TryFrom<&str> for Address {
- type Error = MeliError;
+ type Error = Error;
fn try_from(val: &str) -> Result<Address> {
Ok(parser::address::address(val.as_bytes())?.1)
}