From 7f69577a997da018e92e1fbb0d4093b97937f2bf Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Thu, 2 Dec 2021 19:01:28 +0100 Subject: openpgp: Use unused-must-use. - Rustc 1.57.0 complains that the returned Protected value is never used. let _ = Protected::from(Sy); Does the trick while keeping the original intention. --- openpgp/src/crypto/backend/nettle/ecdh.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openpgp/src') diff --git a/openpgp/src/crypto/backend/nettle/ecdh.rs b/openpgp/src/crypto/backend/nettle/ecdh.rs index 75e86133..eea5661d 100644 --- a/openpgp/src/crypto/backend/nettle/ecdh.rs +++ b/openpgp/src/crypto/backend/nettle/ecdh.rs @@ -90,7 +90,7 @@ pub fn encrypt(recipient: &Key, // Get the X coordinate, safely dispose of Y. let (Sx, Sy) = S.as_bytes(); - Protected::from(Sy); // Just a precaution. + let _ = Protected::from(Sy); // Just a precaution. // Zero-pad to the size of the underlying field, // rounded to the next byte. @@ -190,7 +190,7 @@ pub fn decrypt(recipient: &Key, // Get the X coordinate, safely dispose of Y. let (Sx, Sy) = S.as_bytes(); - Protected::from(Sy); // Just a precaution. + let _ = Protected::from(Sy); // Just a precaution. // Zero-pad to the size of the underlying field, // rounded to the next byte. -- cgit v1.2.3