diff options
-rw-r--r-- | openpgp/src/packet/mod.rs | 6 | ||||
-rw-r--r-- | openpgp/src/parse/parse.rs | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/openpgp/src/packet/mod.rs b/openpgp/src/packet/mod.rs index e7529e32..2f4572ce 100644 --- a/openpgp/src/packet/mod.rs +++ b/openpgp/src/packet/mod.rs @@ -156,12 +156,6 @@ impl BodyLength { Ok(BodyLength::Partial(1 << (octet1 & 0x1F))), 255 => // Five octets. Ok(BodyLength::Full(bio.read_be_u32()?)), - _ => - // The rust compiler doesn't yet check whether an - // integer is covered. - // - // https://github.com/rust-lang/rfcs/issues/1550 - unreachable!(), } } diff --git a/openpgp/src/parse/parse.rs b/openpgp/src/parse/parse.rs index a14d6420..9d05bc66 100644 --- a/openpgp/src/parse/parse.rs +++ b/openpgp/src/parse/parse.rs @@ -1376,7 +1376,6 @@ impl Key4 { 255 => { return php.fail("unsupported secret key encryption"); } - _ => unreachable!() }; Some(sec) |