diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-24 11:26:09 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-24 11:26:09 +0100 |
commit | b17c004747c47a96796f0e10537151c949bd375a (patch) | |
tree | c32036da58f812da682e2071765f28b920b80745 | |
parent | 725c03de78502fbd2a39bbf4bc76865182e14a6a (diff) |
openpgp: Explain unwrap.
-rw-r--r-- | openpgp/src/cert/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openpgp/src/cert/mod.rs b/openpgp/src/cert/mod.rs index 563c8bbc..ffdd8fde 100644 --- a/openpgp/src/cert/mod.rs +++ b/openpgp/src/cert/mod.rs @@ -547,7 +547,9 @@ impl Cert { | SignatureType::PersonaCertification | SignatureType::CasualCertification | SignatureType::PositiveCertification => - self.primary_userid(now).unwrap() + self.primary_userid(now) + .expect("this type must be from a userid binding, \ + hence there must be a userid valid at `now`") .userid().hash(&mut hash), _ => unreachable!(), } |