Skip to content

Commit

Permalink
Add PartialEq to Error (#172)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nick-mobilecoin authored Sep 21, 2023
2 parents 1936168 + 6edc402 commit 3b2d161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verifier/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 3b2d161

Please sign in to comment.