summaryrefslogtreecommitdiffstats
path: root/tool
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 /tool
parent8f1b04c2ff0a06b4a2a43230a03da1b2745f0e8c (diff)
openpgp: Make fields of packet::Header private.
Diffstat (limited to 'tool')
-rw-r--r--tool/src/commands/dump.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/src/commands/dump.rs b/tool/src/commands/dump.rs
index a587783b..5077ae66 100644
--- a/tool/src/commands/dump.rs
+++ b/tool/src/commands/dump.rs
@@ -240,8 +240,8 @@ impl PacketDumper {
if let Some(h) = header {
write!(output, "{} CTB, {}: ",
- if let CTB::Old(_) = h.ctb { "Old" } else { "New" },
- match h.length {
+ if let CTB::Old(_) = h.ctb() { "Old" } else { "New" },
+ match h.length() {
BodyLength::Full(n) =>
format!("{} bytes", n),
BodyLength::Partial(n) =>