diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-02 11:59:14 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-02 13:32:02 +0100 |
commit | 984d3645cbb68437475316fda35a2726f5cc21c1 (patch) | |
tree | 1708bae47a103e08e50251eaaef7b57ca61b9062 /openpgp-ffi/src/error.rs | |
parent | 75c1d18d7a7eb3e6889c651cfaf8e6c4da00b647 (diff) |
openpgp: Mark enum Error non-exhaustive.
- See #405.
Diffstat (limited to 'openpgp-ffi/src/error.rs')
-rw-r--r-- | openpgp-ffi/src/error.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp-ffi/src/error.rs b/openpgp-ffi/src/error.rs index 14c79187..2277d9a2 100644 --- a/openpgp-ffi/src/error.rs +++ b/openpgp-ffi/src/error.rs @@ -250,6 +250,7 @@ impl<'a> From<&'a failure::Error> for Status { Status::Expired, &openpgp::Error::NotYetLive(_) => Status::NotYetLive, + openpgp::Error::__Nonexhaustive => unreachable!(), } } |