From 6ea99fc6f5e4dabefe902891e3f69868134f1f97 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 13 Apr 2024 23:26:06 -0500 Subject: [PATCH] cl-ast: Fix formatting for Index expression --- cl-ast/src/ast_impl.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cl-ast/src/ast_impl.rs b/cl-ast/src/ast_impl.rs index bb2a0f6..bc9fded 100644 --- a/cl-ast/src/ast_impl.rs +++ b/cl-ast/src/ast_impl.rs @@ -430,10 +430,7 @@ mod display { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { let Self { head, indices } = self; write!(f, "{head}")?; - for indices in indices { - indices.fmt(f)?; - } - Ok(()) + delimit(separate(indices, ", "), INLINE_SQUARE)(f) } } impl Display for Path {