diff options
-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; } } |