summaryrefslogtreecommitdiffstats
path: root/openpgp/src/keyid.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-06-11 11:24:44 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-06-11 11:24:44 +0200
commita4d2e75ea6cf56e57aed397720931b22c7d1a123 (patch)
treef5d89ea60a4ae0d69658f8dc09fa21ea5d303243 /openpgp/src/keyid.rs
parent6055a98b431321a9dd2f74eb8bca7c0f0907ce4a (diff)
openpgp: Mark enum Fingerprint as non-exhaustive.
Diffstat (limited to 'openpgp/src/keyid.rs')
-rw-r--r--openpgp/src/keyid.rs2
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!(),
}
}
}