summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-04-01 16:11:48 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-04-01 16:15:00 +0200
commit45b43bb2f5e8dd984e0b8a952dd9f6f6835d5317 (patch)
tree0338b64376e8930a54b245e6d55a8987a83a70a9 /openpgp
parentc6de49b0f6c7e578d239e3e887ce1a0944f50458 (diff)
openpgp: Fix Subpacket's debug formatting.
- Only print the raw length bytes if there are some.
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/src/packet/signature/subpacket.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet/signature/subpacket.rs b/openpgp/src/packet/signature/subpacket.rs
index 1d83fdb7..83fcebc9 100644
--- a/openpgp/src/packet/signature/subpacket.rs
+++ b/openpgp/src/packet/signature/subpacket.rs
@@ -781,7 +781,7 @@ pub struct Subpacket {
impl fmt::Debug for Subpacket {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let mut s = f.debug_struct("Subpacket");
- if self.length.raw.is_some() || true {
+ if self.length.raw.is_some() {
s.field("length", &self.length);
}
if self.critical {