summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-02-24 18:10:26 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-02-24 18:10:26 +0100
commit2fa9369dff04de43989044a8afffeda30348bdf5 (patch)
treedad810ee65914c4865876f677254f98947c7afa2
parent08662582f497f44bb918ef4982c751afd2d6569f (diff)
openpgp: Drop XXX.
- Error::MalformedPacket seems appropriate.
-rw-r--r--openpgp/src/packet/header/ctb.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/openpgp/src/packet/header/ctb.rs b/openpgp/src/packet/header/ctb.rs
index 7ee1d24c..3f48cdf5 100644
--- a/openpgp/src/packet/header/ctb.rs
+++ b/openpgp/src/packet/header/ctb.rs
@@ -195,7 +195,6 @@ impl CTB {
pub fn from_ptag(ptag: u8) -> Result<CTB> {
// The top bit of the ptag must be set.
if ptag & 0b1000_0000 == 0 {
- // XXX: Use a proper error.
return Err(
Error::MalformedPacket(
format!("Malformed CTB: MSB of ptag ({:#010b}) not set{}.",