From 56e4e09346b2cd4c535a5e5f19fef61e94d360b7 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Fri, 25 Apr 2025 10:00:09 +0200 Subject: [PATCH] Include struct name in formatted input-field index --- src/input/input_field.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/input/input_field.rs b/src/input/input_field.rs index 589c0ab6e..6fbde64a9 100644 --- a/src/input/input_field.rs +++ b/src/input/input_field.rs @@ -3,7 +3,7 @@ use std::marker::PhantomData; use std::sync::Arc; use crate::function::VerifyResult; -use crate::ingredient::{fmt_index, Ingredient}; +use crate::ingredient::Ingredient; use crate::input::{Configuration, IngredientImpl, Value}; use crate::table::memo::MemoTableTypes; use crate::zalsa::IngredientIndex; @@ -61,7 +61,13 @@ where } fn fmt_index(&self, index: crate::Id, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { - fmt_index(C::FIELD_DEBUG_NAMES[self.field_index], index, fmt) + write!( + fmt, + "{input}.{field}({id:?})", + input = C::DEBUG_NAME, + field = C::FIELD_DEBUG_NAMES[self.field_index], + id = index + ) } fn debug_name(&self) -> &'static str {