diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-10-02 11:04:36 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-10-02 11:04:36 +0200 |
commit | 4de445cf86fcea53ac8aec2d6d8341e0f69ab2b2 (patch) | |
tree | b5a82115a1ee66dc94ed2eee80b74c6b1af2efe9 /openpgp/src | |
parent | 20b7c634b216d3ce4ae136bc032bb117ece390b1 (diff) |
openpgp: Avoid clone.
Diffstat (limited to 'openpgp/src')
-rw-r--r-- | openpgp/src/packet/signature.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet/signature.rs b/openpgp/src/packet/signature.rs index f35ca04f..0f04c16c 100644 --- a/openpgp/src/packet/signature.rs +++ b/openpgp/src/packet/signature.rs @@ -2604,7 +2604,7 @@ impl crate::packet::Signature { }; let l = p.serialized_len(); - if size + l <= std::u16::MAX as usize && acc.insert(p.clone()) { + if size + l <= std::u16::MAX as usize && acc.insert(p) { size += l; } } |