summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-01-02 11:48:16 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-01-02 13:32:02 +0100
commit75c1d18d7a7eb3e6889c651cfaf8e6c4da00b647 (patch)
tree8b713ea22c4e439d7ed462617392e63fc008cdb7 /openpgp/src/parse
parent7a42b2e19ee506e688bece42c108eee4b4e06a54 (diff)
openpgp: Mark enum Packet non-exhaustive.
- See #405.
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r--openpgp/src/parse/parse.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/src/parse/parse.rs b/openpgp/src/parse/parse.rs
index 25ca01f8..d0123803 100644
--- a/openpgp/src/parse/parse.rs
+++ b/openpgp/src/parse/parse.rs
@@ -3566,6 +3566,7 @@ impl <'a> PacketParser<'a> {
t!("A {:?} packet is not a container, not recursing.",
self.packet.tag());
},
+ Packet::__Nonexhaustive => unreachable!(),
}
// No recursion.