diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-07 21:19:38 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-09 13:13:59 +0200 |
commit | 253158696af836b4162fceadb29917f9eeb6d4a0 (patch) | |
tree | d2d7f8f43f4ab819832d322b3697fdf26604be41 /openpgp/src/crypto/aead.rs | |
parent | a58579221bc8c4fbeba89bd55644415fe0368117 (diff) |
Lint: Do not .clone a Copy type.
- https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
Diffstat (limited to 'openpgp/src/crypto/aead.rs')
-rw-r--r-- | openpgp/src/crypto/aead.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/crypto/aead.rs b/openpgp/src/crypto/aead.rs index a1d62456..9418d847 100644 --- a/openpgp/src/crypto/aead.rs +++ b/openpgp/src/crypto/aead.rs @@ -76,7 +76,7 @@ impl AEADAlgorithm { EAX => Ok(16), // According to RFC4880bis, Section 5.16.2. OCB => Ok(16), - _ => Err(Error::UnsupportedAEADAlgorithm(self.clone()).into()), + _ => Err(Error::UnsupportedAEADAlgorithm(*self).into()), } } @@ -90,7 +90,7 @@ impl AEADAlgorithm { // least 15 octets long". GnuPG hardcodes 15 in // openpgp_aead_algo_info. OCB => Ok(15), - _ => Err(Error::UnsupportedAEADAlgorithm(self.clone()).into()), + _ => Err(Error::UnsupportedAEADAlgorithm(*self).into()), } } } |