Skip to content

Commit

Permalink
derive Debug for Registers
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Nov 7, 2024
1 parent 03a15d4 commit 0e02f4e
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions 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)]
#[derive(PartialEq, Eq, Clone, Debug)]
pub struct Registers {
/// Clock Cycle Counter
pub clk: BaseField,
Expand Down Expand Up @@ -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::*;
Expand Down

0 comments on commit 0e02f4e

Please sign in to comment.