diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-07-07 17:59:10 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-07-07 17:59:48 +0200 |
commit | 0557953f980bd424401c60502b4aac3525b26083 (patch) | |
tree | 36f4f132e135e13a262bff11ac972bb138dcee70 | |
parent | df40ca644a967f1daea796d0d5fa2275ede5a4fb (diff) |
openpgp: Improve test.
-rw-r--r-- | openpgp/src/parse.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs index d0487ac6..c6fa646b 100644 --- a/openpgp/src/parse.rs +++ b/openpgp/src/parse.rs @@ -6017,7 +6017,7 @@ mod test { // Make sure we actually decrypted... let mut saw_literal = false; while let PacketParserResult::Some(mut pp) = ppr { - assert!(pp.possible_message().is_ok()); + pp.possible_message().unwrap(); match pp.packet { Packet::SEIP(_) | Packet::AED(_) => { @@ -6036,7 +6036,7 @@ mod test { } assert!(saw_literal); if let PacketParserResult::EOF(eof) = ppr { - assert!(eof.is_message().is_ok()); + eof.is_message().unwrap(); } else { unreachable!(); } |