From cb56fd05cd09d8b05762fc7b0d72f5f78a00fec0 Mon Sep 17 00:00:00 2001 From: Jeff Date: Fri, 22 Mar 2024 17:50:47 -0400 Subject: [PATCH] Clean up --- dust-lang/src/abstract_tree/assignment.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/dust-lang/src/abstract_tree/assignment.rs b/dust-lang/src/abstract_tree/assignment.rs index b901316..ea15f3e 100644 --- a/dust-lang/src/abstract_tree/assignment.rs +++ b/dust-lang/src/abstract_tree/assignment.rs @@ -103,11 +103,6 @@ impl AbstractNode for Assignment { Value::float(sum) } - (ValueInner::Integer(_) | ValueInner::Float(_), _) => { - return Err(RuntimeError::ValidationFailure( - ValidationError::ExpectedIntegerOrFloat(self.statement.position), - )) - } _ => { return Err(RuntimeError::ValidationFailure( ValidationError::ExpectedIntegerOrFloat(self.identifier.position), @@ -144,11 +139,6 @@ impl AbstractNode for Assignment { Value::float(difference) } - (ValueInner::Integer(_) | ValueInner::Float(_), _) => { - return Err(RuntimeError::ValidationFailure( - ValidationError::ExpectedIntegerOrFloat(self.statement.position), - )) - } _ => { return Err(RuntimeError::ValidationFailure( ValidationError::ExpectedIntegerOrFloat(self.identifier.position),