Change display for GoldilocksField

This commit is contained in:
Robin Salen 2023-02-22 16:33:14 -05:00
parent 6edd589138
commit f7f5fb4e93
No known key found for this signature in database
GPG Key ID: F98FD38F65687358

View File

@ -46,13 +46,13 @@ impl Hash for GoldilocksField {
impl Display for GoldilocksField { impl Display for GoldilocksField {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
Display::fmt(&self.0, f) Display::fmt(&self.to_canonical_u64(), f)
} }
} }
impl Debug for GoldilocksField { impl Debug for GoldilocksField {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
Debug::fmt(&self.0, f) Debug::fmt(&self.to_canonical_u64(), f)
} }
} }