cl-ast: Fix formatting for Index expression

This commit is contained in:
John 2024-04-13 23:26:06 -05:00
parent 6589376870
commit 6ea99fc6f5

View File

@ -430,10 +430,7 @@ mod display {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let Self { head, indices } = self; let Self { head, indices } = self;
write!(f, "{head}")?; write!(f, "{head}")?;
for indices in indices { delimit(separate(indices, ", "), INLINE_SQUARE)(f)
indices.fmt(f)?;
}
Ok(())
} }
} }
impl Display for Path { impl Display for Path {