Skip to content

Commit 6944c77

Browse files
committed
Add PartialEq and Eq traits to structs
1 parent bd6179c commit 6944c77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/web-bot-auth/src/message_signatures.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct SignatureParams {
1515
}
1616

1717
/// Parsed values from `Signature-Input` header.
18-
#[derive(Clone, Debug)]
18+
#[derive(Clone, Debug, PartialEq, Eq)]
1919
pub struct ParameterDetails {
2020
/// The value of the `alg` parameter, if present and resolves to a known algorithm.
2121
pub algorithm: Option<Algorithm>,
@@ -209,7 +209,7 @@ impl SignatureBase {
209209

210210
/// Subset of [HTTP signature algorithm](https://www.iana.org/assignments/http-message-signature/http-message-signature.xhtml)
211211
/// implemented in this module. In the future, we may support more.
212-
#[derive(Clone, Debug)]
212+
#[derive(Clone, Debug, PartialEq, Eq)]
213213
pub enum Algorithm {
214214
/// [The `ed25519` algorithm](https://www.rfc-editor.org/rfc/rfc9421#name-eddsa-using-curve-edwards25)
215215
Ed25519,

0 commit comments

Comments
 (0)