summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/backend/nettle/ecdh.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/crypto/backend/nettle/ecdh.rs')
-rw-r--r--openpgp/src/crypto/backend/nettle/ecdh.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/openpgp/src/crypto/backend/nettle/ecdh.rs b/openpgp/src/crypto/backend/nettle/ecdh.rs
index 29e3d448..93d22a07 100644
--- a/openpgp/src/crypto/backend/nettle/ecdh.rs
+++ b/openpgp/src/crypto/backend/nettle/ecdh.rs
@@ -109,8 +109,6 @@ pub fn encrypt<R>(recipient: &Key<key::PublicParts, R>,
// N/A
Curve::Unknown(_) | Curve::Ed25519 =>
Err(Error::UnsupportedEllipticCurve(curve.clone()).into()),
-
- Curve::__Nonexhaustive => unreachable!(),
}
} else {
Err(Error::InvalidArgument("Expected an ECDHPublicKey".into()).into())