diff options
-rw-r--r-- | openpgp/src/packet/signature/subpacket.rs | 2 | ||||
-rw-r--r-- | openpgp/src/types/key_flags.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/packet/signature/subpacket.rs b/openpgp/src/packet/signature/subpacket.rs index f71647d5..558d3f9c 100644 --- a/openpgp/src/packet/signature/subpacket.rs +++ b/openpgp/src/packet/signature/subpacket.rs @@ -6869,7 +6869,7 @@ impl signature::SignatureBuilder { where T: AsRef<[Fingerprint]> { self.hashed_area.remove_all(SubpacketTag::IntendedRecipient); - for fp in recipients.as_ref().into_iter() { + for fp in recipients.as_ref().iter() { self.hashed_area.add( Subpacket::new(SubpacketValue::IntendedRecipient(fp.clone()), false)?)?; } diff --git a/openpgp/src/types/key_flags.rs b/openpgp/src/types/key_flags.rs index 292afb6a..03bf9f1f 100644 --- a/openpgp/src/types/key_flags.rs +++ b/openpgp/src/types/key_flags.rs @@ -113,7 +113,7 @@ impl BitAnd for &KeyFlags { let r = rhs.as_slice(); let mut c = Vec::with_capacity(std::cmp::min(l.len(), r.len())); - for (l, r) in l.into_iter().zip(r.into_iter()) { + for (l, r) in l.iter().zip(r.iter()) { c.push(l & r); } @@ -136,7 +136,7 @@ impl BitOr for &KeyFlags { }; let mut l = l.to_vec(); - for (i, r) in r.into_iter().enumerate() { + for (i, r) in r.iter().enumerate() { l[i] |= r; } |