diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-21 13:50:24 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-21 14:00:03 +0100 |
commit | a94fe6f6dec24f5817ded4b1859ef4e9ae4e013b (patch) | |
tree | 7654479af548a715ee0d45e2b5231b9dd12a1c22 /tool/src/commands | |
parent | 48b3a1c9b2ca24540c3dd23d2f28620c6477703d (diff) |
openpgp: Make the various keyflags() methods return an Option.
- This signals the absence of a subpacket.
- Likewise for features(), key_server_preferences().
Diffstat (limited to 'tool/src/commands')
-rw-r--r-- | tool/src/commands/inspect.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/inspect.rs b/tool/src/commands/inspect.rs index 6cba96a1..fa16be32 100644 --- a/tool/src/commands/inspect.rs +++ b/tool/src/commands/inspect.rs @@ -202,7 +202,7 @@ fn inspect_key<P, R>(output: &mut dyn io::Write, expires.convert())?; } - if let Some(flags) = inspect_key_flags(sig.key_flags()) { + if let Some(flags) = sig.key_flags().and_then(inspect_key_flags) { writeln!(output, "{} Key flags: {}", indent, flags)?; } } |