diff options
Diffstat (limited to 'openpgp/src/packet/user_attribute.rs')
-rw-r--r-- | openpgp/src/packet/user_attribute.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet/user_attribute.rs b/openpgp/src/packet/user_attribute.rs index 57d93e82..30249d58 100644 --- a/openpgp/src/packet/user_attribute.rs +++ b/openpgp/src/packet/user_attribute.rs @@ -172,7 +172,7 @@ impl<'a> Iterator for SubpacketIterator<'a> { Err(e) => return Some(Err(e.into())), }; - if raw.len() == 0 { + if raw.is_empty() { return Some(Err(Error::MalformedPacket( "Subpacket without type octet".into()).into())); } |