diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-08-13 09:47:36 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-08-13 16:42:58 +0200 |
commit | 149d77f437f2ac2f2dafa4c424a39263b5ffebdc (patch) | |
tree | 94429c6a1f5ec1c33cade9b276c75084a90b4034 /openpgp/src/policy.rs | |
parent | 3192c800ad15b18757dc9596f5946edfe9f2e5d2 (diff) |
openpgp: Add note to enums that cannot be exhaustively matched.
Diffstat (limited to 'openpgp/src/policy.rs')
-rw-r--r-- | openpgp/src/policy.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openpgp/src/policy.rs b/openpgp/src/policy.rs index 43c448ae..b8546cf3 100644 --- a/openpgp/src/policy.rs +++ b/openpgp/src/policy.rs @@ -862,6 +862,9 @@ impl<'a> Policy for StandardPolicy<'a> { /// Key sizes put into are buckets, rounding down to the nearest /// bucket. For example, a 3253-bit RSA key is categorized as /// `RSA3072`. +/// +/// Note: This enum cannot be exhaustively matched to allow future +/// extensions. #[derive(Clone, Debug)] pub enum AsymmetricAlgorithm { /// RSA with key sizes up to 2048-1 bit. |