diff --git a/hblang/src/parser.rs b/hblang/src/parser.rs index 42caaf78..5e00a92f 100644 --- a/hblang/src/parser.rs +++ b/hblang/src/parser.rs @@ -992,7 +992,7 @@ impl<'a> std::fmt::Display for Expr<'a> { display_branch(f, right)?; if matches!(op, TokenKind::Decl | TokenKind::Assign) - && INDENT.with(|idnf| !idnf.get()) == 0 + && INDENT.with(|idnf| idnf.get()) == 0 && !matches!(right, Self::Closure { .. }) { write!(f, ";")?;