From b21d4f4c87225a72524cc338a04bb94c049ad7a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=B6rgens?= Date: Tue, 24 Oct 2023 18:43:33 +0800 Subject: [PATCH] Remove manual implementation of Display (#786) --- circuits/src/memory_io/stark.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/circuits/src/memory_io/stark.rs b/circuits/src/memory_io/stark.rs index f8f50edbb..ade12ad02 100644 --- a/circuits/src/memory_io/stark.rs +++ b/circuits/src/memory_io/stark.rs @@ -10,21 +10,17 @@ use starky::constraint_consumer::{ConstraintConsumer, RecursiveConstraintConsume use starky::evaluation_frame::{StarkEvaluationFrame, StarkFrame}; use starky::stark::Stark; +use crate::display::derive_display_stark_name; use crate::memory_io::columns::{InputOutputMemory, NUM_IO_MEM_COLS}; use crate::stark::utils::is_binary; +derive_display_stark_name!(InputOuputMemoryStark); #[derive(Copy, Clone, Default)] #[allow(clippy::module_name_repetitions)] pub struct InputOuputMemoryStark { pub _f: PhantomData, } -impl Display for InputOuputMemoryStark { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "InputOutputMemoryStark") - } -} - const COLUMNS: usize = NUM_IO_MEM_COLS; const PUBLIC_INPUTS: usize = 0;