diff options
| -rw-r--r-- | sloth/src/analysis/setup.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sloth/src/analysis/setup.rs b/sloth/src/analysis/setup.rs index 522d757..faf10f1 100644 --- a/sloth/src/analysis/setup.rs +++ b/sloth/src/analysis/setup.rs @@ -71,8 +71,12 @@ impl Populator { let mut body_table = body.symtable.clone(); for input in inputs { - let symbol = - self.build_value_symbol(node.line(), &body_table, &input.typ, true)?; + let symbol = self.build_value_symbol( + node.line(), + &body_table, + &input.typ, + true, + )?; body_table.insert(input.identifier.to_owned(), symbol); } } @@ -148,7 +152,6 @@ impl Populator { typ: Type::Function { inputs, output: output.into(), - }, id: self.reserve_id(), mutable: true, |
