summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-01-20 14:47:19 +0100
committerNeal H. Walfield <neal@pep.foundation>2020-01-20 14:52:58 +0100
commit213f3204087f363c00d9ec42a48c034c6edeae1b (patch)
treed7e6e5dfe7abbd9556bd1321178f744d30c099a5 /net
parentf0f645c7a9b6926d0c542f4a4430d0fd47859b41 (diff)
openpgp: Rename ComponentIter::components to bindings.
- `ComponentIter::components` returns `ComponentBindings`. It is more accurate to call it `ComponentIter::component_bindings`. But, since it is called on a component, just use the shorter name, `ComponentIter::bindings`.
Diffstat (limited to 'net')
-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 967635d8..fd598731 100644
--- a/net/src/wkd.rs
+++ b/net/src/wkd.rs
@@ -235,7 +235,7 @@ fn parse_body<S: AsRef<str>>(body: &[u8], email_address: S)
let valid_certs: Vec<Cert> = certs.iter()
// XXX: This filter could become a Cert method, but it adds other API
// method to maintain
- .filter(|cert| {cert.userids().components()
+ .filter(|cert| {cert.userids().bindings()
.any(|uidb|
if let Ok(Some(a)) = uidb.userid().email() {
a == email_address
@@ -344,7 +344,7 @@ pub fn insert<P, S, V>(base_path: P, domain: S, variant: V,
let variant = variant.into().unwrap_or_default();
// First, check which UserIDs are in `domain`.
- let addresses = cert.userids().components().filter_map(|uidb| {
+ let addresses = cert.userids().bindings().filter_map(|uidb| {
uidb.userid().email().unwrap_or(None).and_then(|addr| {
if EmailAddress::from(&addr).ok().map(|e| e.domain == domain)
.unwrap_or(false)