From 33d3910bfbdec106f07f94fe336ae8e89bdcc573 Mon Sep 17 00:00:00 2001 From: Tom French Date: Thu, 21 Dec 2023 13:31:34 +0000 Subject: [PATCH] chore: implement `Eq` on `u4` --- noir_stdlib/src/ops.nr | 1 + 1 file changed, 1 insertion(+) diff --git a/noir_stdlib/src/ops.nr b/noir_stdlib/src/ops.nr index 9ba35d0a027..33dbe0da6d7 100644 --- a/noir_stdlib/src/ops.nr +++ b/noir_stdlib/src/ops.nr @@ -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 } }