summaryrefslogtreecommitdiffstats
path: root/openpgp/src/lib.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-04-30 14:12:49 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-04-30 14:13:07 +0200
commit722e2893f1091dfd2083329823c8067c4726f6df (patch)
tree6091253cb0139c74069be5043053f34c60dfd2c7 /openpgp/src/lib.rs
parent452d8d6821b89f842e07d08095393dd3c8237d7f (diff)
openpgp: Make Error implement Eq.
Diffstat (limited to 'openpgp/src/lib.rs')
-rw-r--r--openpgp/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs
index d8533204..9f7d58ad 100644
--- a/openpgp/src/lib.rs
+++ b/openpgp/src/lib.rs
@@ -178,11 +178,11 @@ pub const VERSION: &'static str = env!("CARGO_PKG_VERSION");
/// Crate result specialization.
pub type Result<T> = ::std::result::Result<T, anyhow::Error>;
-#[derive(thiserror::Error, Debug, Clone)]
/// Errors used in this crate.
///
/// Note: This enum cannot be exhaustively matched to allow future
/// extensions.
+#[derive(thiserror::Error, Debug, Clone, PartialEq, Eq)]
pub enum Error {
/// Invalid argument.
#[error("Invalid argument: {0}")]