diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-26 16:41:58 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-27 13:02:12 +0100 |
commit | 0eccc8747c26e4676f2d2f8739e89f03357f87e0 (patch) | |
tree | 20d89933d51472fd2cc7b63b6c62b3446c585e31 /openpgp/src/serialize/stream.rs | |
parent | c64eb5733fa217f10e51f24dd1d6614703f0d828 (diff) |
openpgp: Make variants of VerificationResult struct-like, add infos.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r-- | openpgp/src/serialize/stream.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs index 3b45e7fb..c533124b 100644 --- a/openpgp/src/serialize/stream.rs +++ b/openpgp/src/serialize/stream.rs @@ -257,7 +257,7 @@ impl<'a> Signer<'a> { /// if let MessageLayer::SignatureGroup { ref results } = /// structure.iter().nth(0).unwrap() /// { - /// if let VerificationResult::GoodChecksum(..) = + /// if let VerificationResult::GoodChecksum { .. } = /// results.get(0).unwrap() /// { Ok(()) /* good */ } else { panic!() } /// } else { panic!() } @@ -361,7 +361,7 @@ impl<'a> Signer<'a> { /// if let MessageLayer::SignatureGroup { ref results } = /// structure.iter().nth(0).unwrap() /// { - /// if let VerificationResult::GoodChecksum(..) = + /// if let VerificationResult::GoodChecksum { .. } = /// results.get(0).unwrap() /// { Ok(()) /* good */ } else { panic!() } /// } else { panic!() } |