From 0e02f4e3bbdcf487d1629bf2681b8b752c8b9e0c Mon Sep 17 00:00:00 2001 From: Thomas Coratger Date: Thu, 7 Nov 2024 09:03:27 +0100 Subject: [PATCH] derive Debug for Registers --- crates/brainfuck_vm/src/registers.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/crates/brainfuck_vm/src/registers.rs b/crates/brainfuck_vm/src/registers.rs index 346ade9..43d74e4 100644 --- a/crates/brainfuck_vm/src/registers.rs +++ b/crates/brainfuck_vm/src/registers.rs @@ -3,7 +3,7 @@ use num_traits::identities::Zero; use stwo_prover::core::fields::m31::BaseField; -#[derive(PartialEq, Eq, Clone)] +#[derive(PartialEq, Eq, Clone, Debug)] pub struct Registers { /// Clock Cycle Counter pub clk: BaseField, @@ -51,16 +51,6 @@ impl std::fmt::Display for Registers { } } -impl std::fmt::Debug for Registers { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "clk:{}, ip:{}, ci:{}, ni:{}, mp:{}, mv:{}, mvi:{}", - self.clk, self.ip, self.ci, self.ni, self.mp, self.mv, self.mvi - ) - } -} - #[cfg(test)] mod tests { use super::*;