Skip to content

Commit

Permalink
Add PartialEq to Error
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 committed Sep 13, 2023
1 parent fcde259 commit c8220e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ lto = "thin"
mbedtls = { git = "https://github.com/mobilecoinfoundation/rust-mbedtls.git", rev = "6d8fe323a3292f87a6bce4b35963d47139a583f9" }
mbedtls-sys-auto = { git = "https://github.com/mobilecoinfoundation/rust-mbedtls.git", rev = "6d8fe323a3292f87a6bce4b35963d47139a583f9" }

mc-sgx-dcap-types = { git = "https://github.com/mobilecoinfoundation/sgx.git", rev = "33998eb12e7b13a963519fcb202413a5643abdf9" }
mc-sgx-core-sys-types = { git = "https://github.com/mobilecoinfoundation/sgx.git", rev = "33998eb12e7b13a963519fcb202413a5643abdf9" }
mc-sgx-core-types = { git = "https://github.com/mobilecoinfoundation/sgx.git", rev = "33998eb12e7b13a963519fcb202413a5643abdf9" }
mc-sgx-dcap-sys-types = { git = "https://github.com/mobilecoinfoundation/sgx.git", rev = "33998eb12e7b13a963519fcb202413a5643abdf9" }
mc-sgx-dcap-types = { git = "https://github.com/mobilecoinfoundation/sgx.git", rev = "267762164a219245f0cbf920a03f78ef38204b21" }
mc-sgx-core-sys-types = { git = "https://github.com/mobilecoinfoundation/sgx.git", rev = "267762164a219245f0cbf920a03f78ef38204b21" }
mc-sgx-core-types = { git = "https://github.com/mobilecoinfoundation/sgx.git", rev = "267762164a219245f0cbf920a03f78ef38204b21" }
mc-sgx-dcap-sys-types = { git = "https://github.com/mobilecoinfoundation/sgx.git", rev = "267762164a219245f0cbf920a03f78ef38204b21" }

[workspace.metadata.release]
shared-version = true
Expand Down
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, Eq, Serialize, Deserialize)]
pub enum Error {
/// Error converting from DER {0}
Der(String),
Expand Down

0 comments on commit c8220e4

Please sign in to comment.