From 2e5bf44f1fcbdbcd536064c309b4cbb26b2bc67f Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 5 Nov 2019 15:04:00 +0100 Subject: openpgp: Make fields of SubpacketValue private. --- tool/src/commands/dump.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tool/src') diff --git a/tool/src/commands/dump.rs b/tool/src/commands/dump.rs index 3f942e60..d75a5c7c 100644 --- a/tool/src/commands/dump.rs +++ b/tool/src/commands/dump.rs @@ -700,15 +700,15 @@ impl PacketDumper { Ok(()) }; - match s.value { + match s.value() { Unknown(ref b) => { - writeln!(output, "{} {:?}{}:", i, s.tag, - if s.critical { " (critical)" } else { "" })?; + writeln!(output, "{} {:?}{}:", i, s.tag(), + if s.critical() { " (critical)" } else { "" })?; hexdump_unknown(output, b)?; }, Invalid(ref b) => { - writeln!(output, "{} {:?}{}:", i, s.tag, - if s.critical { " (critical)" } else { "" })?; + writeln!(output, "{} {:?}{}:", i, s.tag(), + if s.critical() { " (critical)" } else { "" })?; hexdump_unknown(output, b)?; }, SignatureCreationTime(ref t) => @@ -793,10 +793,10 @@ impl PacketDumper { write!(output, "{} Intended Recipient: {}", i, fp)?, } - match s.value { + match s.value() { Unknown(_) | Invalid(_) => (), EmbeddedSignature(ref sig) => { - if s.critical { + if s.critical() { write!(output, " (critical)")?; } writeln!(output)?; @@ -804,7 +804,7 @@ impl PacketDumper { self.dump_packet(output, &indent, None, sig, None, None)?; }, _ => { - if s.critical { + if s.critical() { write!(output, " (critical)")?; } writeln!(output)?; -- cgit v1.2.3