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 /ffi | |
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 'ffi')
-rw-r--r-- | ffi/src/openpgp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ffi/src/openpgp.rs b/ffi/src/openpgp.rs index 85466441..8ef6e59f 100644 --- a/ffi/src/openpgp.rs +++ b/ffi/src/openpgp.rs @@ -1310,7 +1310,7 @@ pub extern "system" fn sq_packet_parser_next<'a> }; match pp.next() { - Ok((old_p, old_rl, pp, new_rl)) => { + Ok(((old_p, old_rl), (pp, new_rl))) => { if let Some(p) = old_packet { *p = box_raw!(old_p); } @@ -1365,7 +1365,7 @@ pub extern "system" fn sq_packet_parser_recurse<'a> }; match pp.recurse() { - Ok((old_p, old_rl, pp, new_rl)) => { + Ok(((old_p, old_rl), (pp, new_rl))) => { if let Some(p) = old_packet { *p = box_raw!(old_p); } |