Skip to content

Commit

Permalink
revert Debug derive for Registers
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Nov 7, 2024
1 parent 9cdadc5 commit 22016b1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion crates/brainfuck_vm/src/registers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use num_traits::identities::Zero;
use stwo_prover::core::fields::m31::BaseField;

#[derive(PartialEq, Eq, Clone, Debug)]
#[derive(PartialEq, Eq, Clone)]
pub struct Registers {
/// Clock Cycle Counter
pub clk: BaseField,
Expand Down Expand Up @@ -51,6 +51,16 @@ 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::*;
Expand Down

0 comments on commit 22016b1

Please sign in to comment.