summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/stream.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-02-19 12:18:01 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-02-19 12:46:58 +0100
commitef396882bc35a97d778e985cd69ebd5181852d8c (patch)
tree6e7945e1394ff82e5a72badc933ddac710c108cc /openpgp/src/serialize/stream.rs
parent32174f69cd4d94b4f621f3273781d487e97fa031 (diff)
openpgp: Split VerificationResult.
- Split VerificationResult into Result<GoodChecksum, VerificationError>. - Fixes #416.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r--openpgp/src/serialize/stream.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs
index 7e30dc88..6769a17c 100644
--- a/openpgp/src/serialize/stream.rs
+++ b/openpgp/src/serialize/stream.rs
@@ -263,9 +263,8 @@ impl<'a> Signer<'a> {
/// if let MessageLayer::SignatureGroup { ref results } =
/// structure.iter().nth(0).unwrap()
/// {
- /// if let VerificationResult::GoodChecksum { .. } =
- /// results.get(0).unwrap()
- /// { Ok(()) /* good */ } else { panic!() }
+ /// results.get(0).unwrap().as_ref().unwrap();
+ /// Ok(())
/// } else { panic!() }
/// }
/// }
@@ -375,9 +374,8 @@ impl<'a> Signer<'a> {
/// if let MessageLayer::SignatureGroup { ref results } =
/// structure.iter().nth(0).unwrap()
/// {
- /// if let VerificationResult::GoodChecksum { .. } =
- /// results.get(0).unwrap()
- /// { Ok(()) /* good */ } else { panic!() }
+ /// results.get(0).unwrap().as_ref().unwrap();
+ /// Ok(())
/// } else { panic!() }
/// }
/// }