summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-05-21 14:38:53 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-05-21 15:04:44 +0200
commit8896bf5cfe0a1251c47a0cdeae01e5026d596a2c (patch)
tree6bd202a48da9685cb48d440e97344a4a53cc7493
parent5a09e42fa418f1041c291b28f74f04190a7afdb4 (diff)
openpgp: Mark branch as unreachable.
-rw-r--r--openpgp/src/parse/parse.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse/parse.rs b/openpgp/src/parse/parse.rs
index d0345748..e89b98dc 100644
--- a/openpgp/src/parse/parse.rs
+++ b/openpgp/src/parse/parse.rs
@@ -1417,7 +1417,7 @@ impl Key4 {
} else if tag == Tag::PublicKey || tag == Tag::PublicSubkey {
None
} else {
- unimplemented!()
+ unreachable!("tag is one of {Public, Secret} x {Key, Subkey}")
};
let key = php_try!(Key4::new(time::Tm::from_pgp(creation_time),