summaryrefslogtreecommitdiffstats
path: root/openpgp/examples
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-09-10 16:06:37 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-09-10 16:06:37 +0200
commit6a41bc7e6fd81d9da38d3cd695377ea770a14e58 (patch)
treeb8e93807768c46afcd95d8a02fafac3ef9e7ddf6 /openpgp/examples
parent8f1b04c2ff0a06b4a2a43230a03da1b2745f0e8c (diff)
openpgp: Make fields of packet::Header private.
Diffstat (limited to 'openpgp/examples')
-rw-r--r--openpgp/examples/statistics.rs4
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,
};