Skip to content

Commit 575641f

Browse files
committed
Add Debug to GT
Signed-off-by: Michael Lodder <redmike7@gmail.com>
1 parent b26f055 commit 575641f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/extension_field_gt.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ impl fmt::Debug for GT {
2929
}
3030
}
3131

32+
impl fmt::Debug for GT {
33+
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
34+
let mut c = self.value.clone();
35+
write!(f, "{}", c.tostring())
36+
}
37+
}
38+
3239
impl GT {
3340
pub fn new() -> Self {
3441
Self {

0 commit comments

Comments
 (0)