diff options
-rw-r--r-- | openpgp/src/parse.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs index de76328c..35f0156a 100644 --- a/openpgp/src/parse.rs +++ b/openpgp/src/parse.rs @@ -5831,10 +5831,8 @@ mod test { Packet::PublicSubkey(_) => subkeys += 1, Packet::UserID(_) => userids += 1, Packet::UserAttribute(_) => uas += 1, - Packet::Unknown(ref u) => { + Packet::Unknown(_) => { unknown += 1; - assert_match!(Some(&Error::MalformedPacket(_)) - = u.error().downcast_ref()); }, _ => (), } |