diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-02-26 22:59:49 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-02-26 23:09:19 +0100 |
commit | 86309e9c4971bd2e4ba80bf4a655aab091cd89b9 (patch) | |
tree | 6898365f04b99c48fb6af97b25df427fa1d1978d /tool/src/commands | |
parent | ceab08e222fadc68c3330dbfe2b47db34bf7141f (diff) |
openpgp: Don't unnecessarily use ComponentAmalgamation::bundle.
- A `ComponentAmalgamation` derefs to a `ComponentBundle`. Don't
use `ComponentAmalgamation::bundle` if it is unnecessary and
doesn't improve legibility.
Diffstat (limited to 'tool/src/commands')
-rw-r--r-- | tool/src/commands/inspect.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs index 3f499fa9..7684539c 100644 --- a/tool/src/commands/inspect.rs +++ b/tool/src/commands/inspect.rs @@ -150,7 +150,7 @@ fn inspect_cert(policy: &dyn Policy, writeln!(output)?; } - for uidb in cert.userids().bundles() { + for uidb in cert.userids() { writeln!(output, " UserID: {}", uidb.userid())?; inspect_revocation(output, "", uidb.revoked(policy, None))?; if let Some(sig) = uidb.binding_signature(policy, None) { @@ -166,7 +166,7 @@ fn inspect_cert(policy: &dyn Policy, writeln!(output)?; } - for uab in cert.user_attributes().bundles() { + for uab in cert.user_attributes() { writeln!(output, " UserID: {:?}", uab.user_attribute())?; inspect_revocation(output, "", uab.revoked(policy, None))?; if let Some(sig) = uab.binding_signature(policy, None) { @@ -213,7 +213,7 @@ fn inspect_key(policy: &dyn Policy, -> Result<()> { let key = ka.key(); - let binding = ka.bundle(); + let bundle = ka.bundle(); let vka = match ka.with_policy(policy, None) { Ok(vka) => { if let Err(e) = vka.alive() { @@ -250,7 +250,7 @@ fn inspect_key(policy: &dyn Policy, writeln!(output, "{} Key flags: {}", indent, flags)?; } } - inspect_certifications(output, binding.certifications(), + inspect_certifications(output, bundle.certifications(), print_certifications)?; Ok(()) |