diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-10-12 14:40:44 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-10-12 14:40:44 +0200 |
commit | e94e608d0294984eba6e71ba4154594473b8263d (patch) | |
tree | 937c07cbce8075291f73921c6a0baca4a1214c01 | |
parent | 3c6ee1191fbe0dc3176981b7e675f7ad7ef2419a (diff) |
openpgp: Include the AEAD feature flag in the fmt::Debug impl.
-rw-r--r-- | openpgp/src/packet/signature/subpacket.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/openpgp/src/packet/signature/subpacket.rs b/openpgp/src/packet/signature/subpacket.rs index 1866184c..35a5fef8 100644 --- a/openpgp/src/packet/signature/subpacket.rs +++ b/openpgp/src/packet/signature/subpacket.rs @@ -1402,10 +1402,21 @@ impl PartialEq for Features { impl fmt::Debug for Features { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + let mut dirty = false; if self.supports_mdc() { f.write_str("MDC")?; + dirty = true; } + if self.supports_aead() { + if dirty { + f.write_str(", ")?; + } + f.write_str("AEAD")?; + dirty = true; + } + + let _ = dirty; Ok(()) } } |