summaryrefslogtreecommitdiffstats
path: root/net/src/wkd.rs
diff options
context:
space:
mode:
Diffstat (limited to 'net/src/wkd.rs')
-rw-r--r--net/src/wkd.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/src/wkd.rs b/net/src/wkd.rs
index ca918733..c1bb0852 100644
--- a/net/src/wkd.rs
+++ b/net/src/wkd.rs
@@ -167,7 +167,7 @@ fn parse_body<S: AsRef<str>>(body: &[u8], email_address: S)
// method to maintain
.filter(|cert| {cert.userids()
.any(|uidb|
- if let Ok(Some(a)) = uidb.userid().email() {
+ if let Ok(Some(a)) = uidb.userid().email2() {
a == email_address
} else { false })
}).cloned().collect();
@@ -244,7 +244,7 @@ pub async fn get<S: AsRef<str>>(c: &reqwest::Client, email_address: S)
fn get_cert_domains<'a>(domain: &'a str, cert: &ValidCert<'a>) -> impl Iterator<Item = Url> + 'a
{
cert.userids().filter_map(move |uidb| {
- uidb.userid().email().unwrap_or(None).and_then(|addr| {
+ uidb.userid().email2().unwrap_or(None).and_then(|addr| {
if EmailAddress::from(&addr).ok().map(|e| e.domain == domain)
.unwrap_or(false)
{