summaryrefslogtreecommitdiffstats
path: root/ipc
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 /ipc
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 'ipc')
-rw-r--r--ipc/src/gnupg.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/src/gnupg.rs b/ipc/src/gnupg.rs
index 68906829..dc3ed078 100644
--- a/ipc/src/gnupg.rs
+++ b/ipc/src/gnupg.rs
@@ -708,7 +708,7 @@ impl<'a, 'b, 'c, R> Future for DecryptionRequest<'a, 'b, 'c, R>
(), // Ignore.
assuan::Response::Status { ref keyword, ref message } =>
if keyword == "PADDING" {
- *padding = &message != &"0";
+ *padding = message != "0";
},
assuan::Response::Error { ref message, .. } =>
return Poll::Ready(operation_failed(message)),