Skip to content

Commit e5832a5

Browse files
committed
Include struct name in formatted input-field index
1 parent f7eea9d commit e5832a5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/input/input_field.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ where
6161
}
6262

6363
fn fmt_index(&self, index: crate::Id, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
64-
fmt_index(C::FIELD_DEBUG_NAMES[self.field_index], index, fmt)
64+
write!(
65+
fmt,
66+
"{input}.{field}({id:?})",
67+
input = C::DEBUG_NAME,
68+
field = C::FIELD_DEBUG_NAMES[self.field_index],
69+
id = index
70+
)
6571
}
6672

6773
fn debug_name(&self) -> &'static str {

0 commit comments

Comments
 (0)