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/packet_pile.rs | |
parent | 90105c50559da50d7e601dca6a27040e03e430a1 (diff) |
openpgp: Replace `.unwrap()` in doctests with `?`
- See #480.
Diffstat (limited to 'openpgp/src/packet_pile.rs')
-rw-r--r-- | openpgp/src/packet_pile.rs | 3 |
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 { |