cl-ast: Remove tail from let (it caused more problems that it could've solved)

This commit is contained in:
2024-07-31 03:19:20 -05:00
parent de63a8c123
commit 8675f91aca
8 changed files with 7 additions and 25 deletions

View File

@@ -443,7 +443,7 @@ mod display {
impl Display for Let {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let Self { mutable, name, ty, init, tail } = self;
let Self { mutable, name, ty, init } = self;
write!(f, "let {mutable}{name}")?;
if let Some(value) = ty {
write!(f, ": {value}")?;
@@ -451,9 +451,6 @@ mod display {
if let Some(value) = init {
write!(f, " = {value}")?;
}
if let Some(value) = tail {
write!(f, ";\n{value}")?;
}
Ok(())
}
}