diff --git a/parser/src/ast.rs b/parser/src/ast.rs index 834dc35..9498fac 100644 --- a/parser/src/ast.rs +++ b/parser/src/ast.rs @@ -249,12 +249,6 @@ pub struct FieldDeclStmt { pub init: Option, } -#[derive(Debug, Clone, Serialize)] -pub struct VarAssignStmt { - pub target: Expression, - pub value: Expression, -} - #[derive(Debug, Clone, Serialize)] pub struct StatementBranch { pub condition: Expression, diff --git a/src/codegen.rs b/src/codegen.rs index b3fbfe5..a5aec25 100644 --- a/src/codegen.rs +++ b/src/codegen.rs @@ -1,8 +1,8 @@ use mist_parser::ast::{ Attribute, BinaryOp, Block, ClassItem, EnumItem, Expression, FieldDecl, FunctionDecl, Generic, Generics, Identifier, ImplDecl, Literal, Path, Pattern, Postfix, Prefix, Statement, - StatementBranch, TopLevel, TopLevelKind, TypeExpr, TypeExprKind, TypePostfix, VarAssignStmt, - VarDecl, VarDeclStmt, Visibility, + StatementBranch, TopLevel, TopLevelKind, TypeExpr, TypeExprKind, TypePostfix, VarDecl, + VarDeclStmt, Visibility, }; // ---------------------------------------------------------------------------