diff options
author | Azul <azul@riseup.net> | 2020-12-11 14:41:57 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-12-11 18:09:09 +0100 |
commit | e3d65e26e284b7a77af9f3b713790f8a98bc417f (patch) | |
tree | fc7c363c357f1ce7bd80f5646f4b054f2c468b9b /openpgp/src/cert.rs | |
parent | 90105c50559da50d7e601dca6a27040e03e430a1 (diff) |
openpgp: Replace `.unwrap()` in doctests with `?`
- See #480.
Diffstat (limited to 'openpgp/src/cert.rs')
-rw-r--r-- | openpgp/src/cert.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs index ca010f19..2755eb7e 100644 --- a/openpgp/src/cert.rs +++ b/openpgp/src/cert.rs @@ -1174,7 +1174,7 @@ impl Cert { /// # let tag = Tag::Private(61); /// # let unknown /// # = Unknown::new(tag, openpgp::Error::UnsupportedPacketType(tag).into()); - /// # let cert = cert.insert_packets(unknown).unwrap(); + /// # let cert = cert.insert_packets(unknown)?; /// println!("{}'s has {} unknown components.", /// cert.fingerprint(), /// cert.unknowns().count()); |