Skip to content

Commit

Permalink
fix: add missing PartialOrd trait (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm authored May 16, 2024
1 parent 30c4d39 commit bc708fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/cairo-serde/src/types/byte_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ pub const BYTES31_MAX: FieldElement = FieldElement::from_mont([
576460566199927480,
]);

#[derive(Debug, Clone, Eq, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[derive(
Debug, Clone, Eq, PartialEq, PartialOrd, Default, serde::Serialize, serde::Deserialize,
)]
pub struct Bytes31(FieldElement);

impl Bytes31 {
Expand Down Expand Up @@ -71,7 +73,9 @@ impl CairoSerde for Bytes31 {
}
}

#[derive(Debug, Clone, Eq, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[derive(
Debug, Clone, Eq, PartialEq, PartialOrd, Default, serde::Serialize, serde::Deserialize,
)]
pub struct ByteArray {
pub data: Vec<Bytes31>,
pub pending_word: FieldElement,
Expand Down

0 comments on commit bc708fb

Please sign in to comment.