diff --git a/ipa-core/src/ff/boolean_array.rs b/ipa-core/src/ff/boolean_array.rs index 78265ca27..2dbbf0b9f 100644 --- a/ipa-core/src/ff/boolean_array.rs +++ b/ipa-core/src/ff/boolean_array.rs @@ -1,3 +1,5 @@ +use std::fmt::{Debug, Formatter}; + use bitvec::{ prelude::{BitArr, Lsb0}, slice::Iter, @@ -254,9 +256,15 @@ macro_rules! boolean_array_impl { type Store = BitArr!(for $bits, in u8, Lsb0); /// A Boolean array with $bits bits. - #[derive(Clone, Copy, PartialEq, Eq, Debug)] + #[derive(Clone, Copy, PartialEq, Eq)] pub struct $name(pub(super) Store); + impl Debug for $name { + fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { + write!(f, "{}({})", stringify!($name), self.0) + } + } + impl $name { #[cfg(all(test, unit_test))] const STORE_LEN: usize = bitvec::mem::elts::($bits);