summaryrefslogtreecommitdiffstats
path: root/openpgp/examples
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/examples')
-rw-r--r--openpgp/examples/statistics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/examples/statistics.rs b/openpgp/examples/statistics.rs
index ff2a9cf9..ae650aed 100644
--- a/openpgp/examples/statistics.rs
+++ b/openpgp/examples/statistics.rs
@@ -46,7 +46,7 @@ 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 {
+ let size = match pp.header().length {
BodyLength::Full(n) => Some(n),
_ => None,
};