summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse/mpis.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/parse/mpis.rs')
-rw-r--r--openpgp/src/parse/mpis.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/openpgp/src/parse/mpis.rs b/openpgp/src/parse/mpis.rs
index a9759b0d..129f1c86 100644
--- a/openpgp/src/parse/mpis.rs
+++ b/openpgp/src/parse/mpis.rs
@@ -143,8 +143,6 @@ impl mpi::PublicKey {
rest: rest.into_boxed_slice(),
})
}
-
- __Nonexhaustive => unreachable!(),
}
}
}
@@ -257,8 +255,6 @@ impl mpi::SecretKeyMaterial {
rest: rest.into(),
})
}
-
- __Nonexhaustive => unreachable!(),
};
let mpis = mpis?;
@@ -377,8 +373,6 @@ impl mpi::Ciphertext {
RSASign | DSA | EdDSA | ECDSA => Err(Error::InvalidArgument(
format!("not an encryption algorithm: {:?}", algo)).into()),
-
- __Nonexhaustive => unreachable!(),
}
}
}
@@ -484,8 +478,6 @@ impl mpi::Signature {
RSAEncrypt | ElGamalEncrypt | ECDH => Err(Error::InvalidArgument(
format!("not a signature algorithm: {:?}", algo)).into()),
-
- __Nonexhaustive => unreachable!(),
}
}
}