diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2020-09-22 00:45:53 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2020-11-06 09:46:53 +0100 |
commit | cdc9e16fb2aef0156d6af4abe3e519c22efa230e (patch) | |
tree | f4f5e10029ed7816bcb0931c53d27ed0e21c598c /ffi/src/error.rs | |
parent | 327a987e2c95ea9d05fcadd6fa7a8c249372affd (diff) |
openpgp: Use non_exhaustive attribute.
- Fixes #563
- With an MSRV >= 1.40.0, we can use #[non_exhaustive], as mentioned
in #406.
- This is also a clippy lint:
https://rust-lang.github.io/rust-clippy/master/index.html#manual_non_exhaustive
Diffstat (limited to 'ffi/src/error.rs')
-rw-r--r-- | ffi/src/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi/src/error.rs b/ffi/src/error.rs index 935d4515..7ca484d1 100644 --- a/ffi/src/error.rs +++ b/ffi/src/error.rs @@ -79,7 +79,7 @@ impl<'a> FromSequoiaError<'a> for Status { Status::InvalidKey, &openpgp::Error::PolicyViolation(_, _) => Status::PolicyViolation, - openpgp::Error::__Nonexhaustive => unreachable!(), + &_ => unreachable!(), // openpgp::Error is non-exhaustive. } } |