From 99ebd71dacb6e6d23e522e4640a903ea385ebf3e Mon Sep 17 00:00:00 2001 From: Erin Date: Mon, 7 Jun 2021 22:24:43 +0200 Subject: [PATCH] Added missing mut --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index a9c6a57..e115641 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -39,7 +39,7 @@ impl<'source> Parser<'source> { // T-Dark block (replace `lang` with `script`) Token::TDark => { self.tdark = true; - let block = self.get_block()?; + let mut block = self.get_block()?; ast.append(&mut block.block); self.tdark = false; }