diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-09-10 16:06:37 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-09-10 16:06:37 +0200 |
commit | 6a41bc7e6fd81d9da38d3cd695377ea770a14e58 (patch) | |
tree | b8e93807768c46afcd95d8a02fafac3ef9e7ddf6 /openpgp/examples | |
parent | 8f1b04c2ff0a06b4a2a43230a03da1b2745f0e8c (diff) |
openpgp: Make fields of packet::Header private.
Diffstat (limited to 'openpgp/examples')
-rw-r--r-- | openpgp/examples/statistics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/examples/statistics.rs b/openpgp/examples/statistics.rs index bd26cc40..14a2ae90 100644 --- a/openpgp/examples/statistics.rs +++ b/openpgp/examples/statistics.rs @@ -62,8 +62,8 @@ fn main() { // Iterate over all packets. while let PacketParserResult::Some(pp) = ppr { // While the packet is in the parser, get some data for later. - let size = match pp.header().length { - BodyLength::Full(n) => Some(n), + let size = match pp.header().length() { + &BodyLength::Full(n) => Some(n), _ => None, }; |