Skip to content

Commit

Permalink
chore: implement Eq on u4
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Dec 21, 2023
1 parent 3f4de20 commit 33d3910
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions noir_stdlib/src/ops.nr
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ trait Eq {

impl Eq for Field { fn eq(self, other: Field) -> bool { self == other } }

impl Eq for u4 { fn eq(self, other: u4) -> bool { self == other } }
impl Eq for u8 { fn eq(self, other: u8) -> bool { self == other } }
impl Eq for u16 { fn eq(self, other: u16) -> bool { self == other } }
impl Eq for u32 { fn eq(self, other: u32) -> bool { self == other } }
Expand Down

0 comments on commit 33d3910

Please sign in to comment.