summaryrefslogtreecommitdiffstats
path: root/autocrypt
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-21 17:30:37 +0300
committerLars Wirzenius <liw@sequoia-pgp.org>2021-09-30 08:31:04 +0300
commit0ffd43b786807c26d1bf95426b12900610ded699 (patch)
tree921ea0c353e7626758c127e77ec65b1e1f524677 /autocrypt
parent581c3f0ee0d16a42ec3e74498d96da251a90672b (diff)
Simplify &foo == &bar into foo == bar
This was found by clippy lint op_ref: https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
Diffstat (limited to 'autocrypt')
-rw-r--r--autocrypt/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/autocrypt/src/lib.rs b/autocrypt/src/lib.rs
index 4a24a203..0da1f053 100644
--- a/autocrypt/src/lib.rs
+++ b/autocrypt/src/lib.rs
@@ -135,7 +135,7 @@ impl AutocryptHeader {
for uidb in cert.userids().with_policy(policy, None) {
// XXX: Fix match once we have the rfc2822-name-addr.
if let Ok(Some(a)) = uidb.userid().email() {
- if &a == addr {
+ if a == addr {
acc.push(uidb.userid().clone().into());
acc.push(uidb.binding_signature().clone().into());
found_one = true;