diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-25 19:31:29 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-29 11:53:56 +0100 |
commit | a6e108eee52afade3a45aafb7bd3c7e3a150f367 (patch) | |
tree | fd53c95a824d981070598556cee98a258b3320b4 /openpgp | |
parent | 72c8024ec969b27c72110e2b20a576eb4f1de9fc (diff) |
Remove needless borrows.
- Found by clippy::needless_borrow.
Diffstat (limited to 'openpgp')
-rw-r--r-- | openpgp/src/crypto/backend/rust/asymmetric.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/crypto/backend/rust/asymmetric.rs b/openpgp/src/crypto/backend/rust/asymmetric.rs index 4af499bf..79f966cf 100644 --- a/openpgp/src/crypto/backend/rust/asymmetric.rs +++ b/openpgp/src/crypto/backend/rust/asymmetric.rs @@ -151,7 +151,7 @@ impl Signer for KeyPair { .copy_from_slice( &scalar.value_padded(SECRET_KEY_LENGTH)); keypair.as_mut()[SECRET_KEY_LENGTH..] - .copy_from_slice(&public); + .copy_from_slice(public); let pair = Keypair::from_bytes(&keypair)?; let sig = pair.sign(digest).to_bytes(); @@ -404,7 +404,7 @@ impl<R> Key4<SecretParts, R> q: mpi::MPI::new(&public) }, mpi::SecretKeyMaterial::EdDSA { - scalar: mpi::MPI::new(&private_key).into(), + scalar: mpi::MPI::new(private_key).into(), }.into() ) } |