summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet_pile.rs
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2020-12-11 14:41:57 +0100
committerAzul <azul@riseup.net>2020-12-11 18:09:09 +0100
commite3d65e26e284b7a77af9f3b713790f8a98bc417f (patch)
treefc7c363c357f1ce7bd80f5646f4b054f2c468b9b /openpgp/src/packet_pile.rs
parent90105c50559da50d7e601dca6a27040e03e430a1 (diff)
openpgp: Replace `.unwrap()` in doctests with `?`
- See #480.
Diffstat (limited to 'openpgp/src/packet_pile.rs')
-rw-r--r--openpgp/src/packet_pile.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/src/packet_pile.rs b/openpgp/src/packet_pile.rs
index 330d02cf..481d09f3 100644
--- a/openpgp/src/packet_pile.rs
+++ b/openpgp/src/packet_pile.rs
@@ -375,8 +375,7 @@ impl PacketPile {
/// literal.set_body(b"new".to_vec());
/// pile.replace(
/// &[0, 0], 1,
- /// [literal.into()].to_vec())
- /// .unwrap();
+ /// [literal.into()].to_vec())?;
/// # if let Some(Packet::Literal(lit)) = pile.path_ref(&[0, 0]) {
/// # assert_eq!(lit.body(), &b"new"[..], "{:#?}", lit);
/// # } else {