summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-01-23 13:36:35 +0100
committerNeal H. Walfield <neal@pep.foundation>2020-01-23 13:37:59 +0100
commit06e465642565eb548cedc29fcb564b30cf4fe0ef (patch)
tree94c8a81cf09cd381453c509fc3bba16c65b07c3c /net
parent79557c3f1c5e4da1986a4716dfc4079ddb82c377 (diff)
net: Avoid unnecessary indirection.
Diffstat (limited to 'net')
-rw-r--r--net/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/src/lib.rs b/net/src/lib.rs
index f7add939..95216126 100644
--- a/net/src/lib.rs
+++ b/net/src/lib.rs
@@ -183,7 +183,7 @@ impl KeyServer {
match Cert::from_reader(r) {
Ok(cert) => {
if cert.keys().any(|ka| {
- KeyID::from(ka.key().fingerprint())
+ KeyID::from(ka.fingerprint())
== keyid_want
}) {
future::done(Ok(cert))