mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 13:11:11 +00:00
Fix: unnecessary break line in ast
This commit is contained in:
parent
7d659da6a5
commit
597bfe7b99
1 changed files with 3 additions and 3 deletions
|
@ -448,7 +448,7 @@ impl NestedDisplay for NormalArray {
|
|||
fn fmt_nest(&self, f: &mut fmt::Formatter<'_>, level: usize) -> fmt::Result {
|
||||
writeln!(f, "[")?;
|
||||
self.elems.fmt_nest(f, level + 1)?;
|
||||
write!(f, "\n{}]", " ".repeat(level))
|
||||
write!(f, "{}]", " ".repeat(level))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -559,7 +559,7 @@ impl NestedDisplay for NormalTuple {
|
|||
fn fmt_nest(&self, f: &mut fmt::Formatter<'_>, level: usize) -> fmt::Result {
|
||||
writeln!(f, "(")?;
|
||||
self.elems.fmt_nest(f, level + 1)?;
|
||||
write!(f, "\n{})", " ".repeat(level))
|
||||
write!(f, "{})", " ".repeat(level))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -709,7 +709,7 @@ impl NestedDisplay for NormalRecord {
|
|||
fn fmt_nest(&self, f: &mut fmt::Formatter<'_>, level: usize) -> fmt::Result {
|
||||
writeln!(f, "{{")?;
|
||||
self.attrs.fmt_nest(f, level + 1)?;
|
||||
writeln!(f, "\n{}}}", " ".repeat(level))
|
||||
writeln!(f, "{}}}", " ".repeat(level))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue