From 722e2893f1091dfd2083329823c8067c4726f6df Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 30 Apr 2020 14:12:49 +0200 Subject: openpgp: Make Error implement Eq. --- openpgp/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openpgp/src/lib.rs') 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 = ::std::result::Result; -#[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}")] -- cgit v1.2.3