about summary refs log tree commit diff
path: root/src/parse/ast/statement.rs
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2021-12-29 00:48:16 +0100
committerMel <einebeere@gmail.com>2021-12-29 00:48:16 +0100
commit842e76d57274ea6f8d5929e96f2919fd9cf0afb5 (patch)
tree2aae20bdc9e7e60f02e3b89bc1db396eb43a3f61 /src/parse/ast/statement.rs
parente621f13a226d297d5368f4c294a8549a93843934 (diff)
downloadrabbithole-842e76d57274ea6f8d5929e96f2919fd9cf0afb5.tar.zst
rabbithole-842e76d57274ea6f8d5929e96f2919fd9cf0afb5.zip
Runtime errors
Diffstat (limited to 'src/parse/ast/statement.rs')
-rw-r--r--src/parse/ast/statement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/ast/statement.rs b/src/parse/ast/statement.rs
index 7eb9978..7ed91dc 100644
--- a/src/parse/ast/statement.rs
+++ b/src/parse/ast/statement.rs
@@ -32,7 +32,7 @@ impl Statement {
         depth: usize,
     ) -> std::fmt::Result {
         let pad = "  ".repeat(depth);
-        match self.kind {
+        match &self.kind {
             StatementKind::Expression(expression) => expression.nested_fmt(f, depth)?,
             StatementKind::Print(expression) => {
                 writeln!(f, "{}Print:", pad)?;