diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-25 11:29:37 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-25 11:35:06 +0100 |
commit | 9c6174635ac40a32b273bf78493c1d6db3cc2d34 (patch) | |
tree | 6cb90209caa44931abe6061144af3cfbd61711e5 /tool/src/commands/inspect.rs | |
parent | 6b3574906ed2cd647a6d4f8dcb3243e3dd0d5616 (diff) |
openpgp: Rename openpgp::constants to openpgp::types.
- Fixes #381.
Diffstat (limited to 'tool/src/commands/inspect.rs')
-rw-r--r-- | tool/src/commands/inspect.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs index 3f75daf0..ef3692aa 100644 --- a/tool/src/commands/inspect.rs +++ b/tool/src/commands/inspect.rs @@ -227,7 +227,7 @@ fn inspect_revocation(output: &mut dyn io::Write, Ok(()) } -fn inspect_key_flags(flags: openpgp::constants::KeyFlags) -> Option<String> { +fn inspect_key_flags(flags: openpgp::types::KeyFlags) -> Option<String> { let mut capabilities = Vec::new(); if flags.can_certify() { capabilities.push("certification") @@ -254,7 +254,7 @@ fn inspect_key_flags(flags: openpgp::constants::KeyFlags) -> Option<String> { fn inspect_signatures(output: &mut dyn io::Write, sigs: &[openpgp::packet::Signature]) -> Result<()> { - use crate::openpgp::constants::SignatureType::*; + use crate::openpgp::types::SignatureType::*; for sig in sigs { match sig.typ() { Binary | Text => (), |