summaryrefslogtreecommitdiffstats
path: root/tool/src/commands/inspect.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-08-19 12:05:40 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-08-19 12:05:40 +0200
commit3bdc218a8b3582b66fc7c6c8d9f2146ddb1ef6b5 (patch)
tree6f0b0714c244f888eb6e0227ae51f76f3135539d /tool/src/commands/inspect.rs
parent42458c88438a37e09f8dfa418e4f35252209a954 (diff)
openpgp: Rename sigtype to typ, set_sigtype to set_typ.
- 'sig' in method names on Signature and OnePassSig is redundant, and 'sigtype' is likely inherited from other implementations. - Fixes #326.
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 a1997b7c..3dbd27e0 100644
--- a/tool/src/commands/inspect.rs
+++ b/tool/src/commands/inspect.rs
@@ -253,7 +253,7 @@ fn inspect_signatures(output: &mut io::Write,
sigs: &[openpgp::packet::Signature]) -> Result<()> {
use crate::openpgp::constants::SignatureType::*;
for sig in sigs {
- match sig.sigtype() {
+ match sig.typ() {
Binary | Text => (),
signature_type @ _ =>
writeln!(output, " Kind: {}", signature_type)?,