summaryrefslogtreecommitdiffstats
path: root/tool/src/commands/inspect.rs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-08-27 09:21:14 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-08-27 09:21:14 +0200
commited778c52ad5e06d1fcf149ae3e60bfb169b3ffa8 (patch)
tree19ba1724424bebb62542212556284bc729def856 /tool/src/commands/inspect.rs
parentf199be6e71e28d6d92d345de27c894ed30e7a598 (diff)
openpgp: Remove redundant accessors.
- TPK::selfsigs(), TPK::certifications(), TPK::self_revocations(), and TPK::other_revocations() are all available as TPK::primary().xxx(). - Making them available at the TPK level is redundant and confusing. - Remove them.
Diffstat (limited to 'tool/src/commands/inspect.rs')
-rw-r--r--tool/src/commands/inspect.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs
index e1a73bc5..f1b9f625 100644
--- a/tool/src/commands/inspect.rs
+++ b/tool/src/commands/inspect.rs
@@ -132,7 +132,7 @@ fn inspect_tpk(output: &mut io::Write, tpk: &openpgp::TPK,
writeln!(output, " Fingerprint: {}", tpk.fingerprint())?;
inspect_revocation(output, "", tpk.revocation_status())?;
inspect_key(output, "", tpk.primary().key(), tpk.primary_key_signature(),
- tpk.certifications(),
+ tpk.primary().certifications(),
print_keygrips, print_certifications)?;
writeln!(output)?;