diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-07-03 12:26:12 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-07-18 17:06:52 +0200 |
commit | dc8f39503894b282d0a98e5012e512768cabb49f (patch) | |
tree | 28e240371a483bd899fab194d75381451af6521d /openpgp/src/types/key_flags.rs | |
parent | 05f4e30e72e4aff547fd3496a48c42359e73c02f (diff) |
openpgp: Don't implicitly canonicalize Bitfields.
Diffstat (limited to 'openpgp/src/types/key_flags.rs')
-rw-r--r-- | openpgp/src/types/key_flags.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/types/key_flags.rs b/openpgp/src/types/key_flags.rs index a71cff03..a1867bad 100644 --- a/openpgp/src/types/key_flags.rs +++ b/openpgp/src/types/key_flags.rs @@ -238,7 +238,7 @@ impl KeyFlags { /// # Ok(()) } /// ``` pub fn set(self, bit: usize) -> Self { - Self(self.0.set(bit)) + Self(self.0.set(bit).canonicalize()) } /// Clears the specified key flag. @@ -262,7 +262,7 @@ impl KeyFlags { /// # Ok(()) } /// ``` pub fn clear(self, bit: usize) -> Self { - Self(self.0.clear(bit)) + Self(self.0.clear(bit).canonicalize()) } /// This key may be used to certify other keys. |