diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-07-03 12:50:25 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-07-18 17:06:52 +0200 |
commit | be437462e2bdc774d586c396b116b23b7536fd56 (patch) | |
tree | 0c8cadd7291a9019af1242cc650f76179b864eae /openpgp/src/types/key_flags.rs | |
parent | 3723a190585fec8573713ac2378001a442bb95b7 (diff) |
openpgp: Rework Bitfield::padding_len.
Diffstat (limited to 'openpgp/src/types/key_flags.rs')
-rw-r--r-- | openpgp/src/types/key_flags.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/src/types/key_flags.rs b/openpgp/src/types/key_flags.rs index 5c3a8945..e2948722 100644 --- a/openpgp/src/types/key_flags.rs +++ b/openpgp/src/types/key_flags.rs @@ -95,8 +95,7 @@ impl fmt::Debug for KeyFlags { } // Mention any padding, as equality is sensitive to this. - let padding = self.0.padding_len(); - if padding > 0 { + if let Some(padding) = self.0.padding_bytes() { if need_comma { f.write_str(", ")?; } write!(f, "+padding({} bytes)", padding)?; } |