cl-ast: Fix formatting for Index expression
This commit is contained in:
parent
6589376870
commit
6ea99fc6f5
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user