summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/serialize.rs')
-rw-r--r--openpgp/src/serialize.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/src/serialize.rs b/openpgp/src/serialize.rs
index 476e77be..a67da09d 100644
--- a/openpgp/src/serialize.rs
+++ b/openpgp/src/serialize.rs
@@ -801,6 +801,7 @@ impl Marshal for KeyID {
let raw = match self {
&KeyID::V4(ref fp) => &fp[..],
&KeyID::Invalid(ref fp) => &fp[..],
+ KeyID::__Nonexhaustive => unreachable!(),
};
o.write_all(raw)?;
Ok(())
@@ -813,6 +814,7 @@ impl MarshalInto for KeyID {
match self {
&KeyID::V4(_) => 8,
&KeyID::Invalid(ref fp) => fp.len(),
+ KeyID::__Nonexhaustive => unreachable!(),
}
}