From 0ffd43b786807c26d1bf95426b12900610ded699 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 21 Sep 2021 17:30:37 +0300 Subject: 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 --- ipc/src/gnupg.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipc') 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)), -- cgit v1.2.3