diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-25 19:20:34 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-29 11:53:56 +0100 |
commit | 16f7b6f92eb918a9ad258ca012959f338ac7e5d2 (patch) | |
tree | 5f1f34b541ecfb5600ba17b58b07b5ac7e3946df /openpgp/src/crypto/backend | |
parent | f6a28555c2682c700165404d5f1944122b969f76 (diff) |
Remove unnecessary conversions.
- Found with clippy::useless_conversion.
Diffstat (limited to 'openpgp/src/crypto/backend')
-rw-r--r-- | openpgp/src/crypto/backend/rust/asymmetric.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/crypto/backend/rust/asymmetric.rs b/openpgp/src/crypto/backend/rust/asymmetric.rs index cd3faee7..b0557279 100644 --- a/openpgp/src/crypto/backend/rust/asymmetric.rs +++ b/openpgp/src/crypto/backend/rust/asymmetric.rs @@ -528,7 +528,7 @@ impl<R> Key4<SecretParts, R> scalar: private_key.into(), }; - (PublicKeyAlgorithm::ECDH, public_mpis, private_mpis.into()) + (PublicKeyAlgorithm::ECDH, public_mpis, private_mpis) } (Curve::NistP256, true) => { @@ -546,7 +546,7 @@ impl<R> Key4<SecretParts, R> scalar: Vec::from(secret.to_bytes().as_slice()).into(), }; - (PublicKeyAlgorithm::ECDSA, public_mpis, private_mpis.into()) + (PublicKeyAlgorithm::ECDSA, public_mpis, private_mpis) }, (Curve::NistP256, false) => { @@ -566,7 +566,7 @@ impl<R> Key4<SecretParts, R> scalar: Vec::from(secret.to_bytes().as_slice()).into(), }; - (PublicKeyAlgorithm::ECDH, public_mpis, private_mpis.into()) + (PublicKeyAlgorithm::ECDH, public_mpis, private_mpis) }, _ => { |