diff options
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r-- | openpgp/src/serialize/stream.rs | 10 |
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!() } /// } /// } |