From 6edc402f887011fa1bc16654912a5a292ac9f19d Mon Sep 17 00:00:00 2001 From: Nick Santana Date: Wed, 13 Sep 2023 14:07:38 -0700 Subject: [PATCH] Add `PartialEq` to `Error` Adding `PartialEq` to `Error` to make it more ergonomic for consumers. Since the `Error` type implements `Serialize` and `Deserialize` all of the error variants are simple types that implement equivalence. --- verifier/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verifier/src/error.rs b/verifier/src/error.rs index 8220cbc..2ff4a71 100644 --- a/verifier/src/error.rs +++ b/verifier/src/error.rs @@ -7,7 +7,7 @@ use mc_sgx_dcap_types::TcbError; use serde::{Deserialize, Serialize}; /// Error working with quote evidence -#[derive(displaydoc::Display, Debug, Clone, Serialize, Deserialize)] +#[derive(displaydoc::Display, Debug, Clone, PartialEq, Serialize, Deserialize)] pub enum Error { /// Error converting from DER {0} Der(String),