diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-12-02 19:01:28 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-12-02 19:01:33 +0100 |
commit | 7f69577a997da018e92e1fbb0d4093b97937f2bf (patch) | |
tree | f12274a1b940f79588afe5e064ec708dbbb45ab5 /openpgp | |
parent | 77beb1cac73d356a085396d20f172568db3c6346 (diff) |
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.
Diffstat (limited to 'openpgp')
-rw-r--r-- | openpgp/src/crypto/backend/nettle/ecdh.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<R>(recipient: &Key<key::PublicParts, R>, // 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<R>(recipient: &Key<key::PublicParts, R>, // 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. |