diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-08-24 15:18:36 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-08-24 15:27:36 +0200 |
commit | 14e059831e382b1cda693ed344b71a81d9d8a568 (patch) | |
tree | 98fe49abefce5158fd9842f0038956f2b8324686 /openpgp/examples/decrypt-with.rs | |
parent | 30f525ee2a7b92f17878704f4bcc3cafe6006dde (diff) |
openpgp: Make PacketParser's next() and recurse() return two tuples.
- This logically groups the returned values, and makes it easier to
ignore both packet-related values.
- See #27.
Diffstat (limited to 'openpgp/examples/decrypt-with.rs')
-rw-r--r-- | openpgp/examples/decrypt-with.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/examples/decrypt-with.rs b/openpgp/examples/decrypt-with.rs index e023bcb9..4bcd4e9c 100644 --- a/openpgp/examples/decrypt-with.rs +++ b/openpgp/examples/decrypt-with.rs @@ -93,7 +93,7 @@ pub fn main() { State::Done => State::Done, }; - let (packet, _, ppr_tmp, _) = pp.recurse() + let ((packet, _), (ppr_tmp, _)) = pp.recurse() .expect("Failed to recurse"); ppr = ppr_tmp; |