diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-06-11 11:24:44 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-06-11 11:24:44 +0200 |
commit | a4d2e75ea6cf56e57aed397720931b22c7d1a123 (patch) | |
tree | f5d89ea60a4ae0d69658f8dc09fa21ea5d303243 /openpgp/src/keyid.rs | |
parent | 6055a98b431321a9dd2f74eb8bca7c0f0907ce4a (diff) |
openpgp: Mark enum Fingerprint as non-exhaustive.
Diffstat (limited to 'openpgp/src/keyid.rs')
-rw-r--r-- | openpgp/src/keyid.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/src/keyid.rs b/openpgp/src/keyid.rs index 3729f285..1d0410df 100644 --- a/openpgp/src/keyid.rs +++ b/openpgp/src/keyid.rs @@ -108,6 +108,7 @@ impl From<&Fingerprint> for KeyID { Fingerprint::Invalid(fp) => { KeyID::Invalid(fp.clone()) } + Fingerprint::__Nonexhaustive => unreachable!(), } } } @@ -120,6 +121,7 @@ impl From<Fingerprint> for KeyID { Fingerprint::Invalid(fp) => { KeyID::Invalid(fp) } + Fingerprint::__Nonexhaustive => unreachable!(), } } } |