From 35eca1f7b42e7d40752572b3fe4a3c71cd33bf1a Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 7 Aug 2024 18:46:40 -0400 Subject: [PATCH] Clean up --- dust-lang/src/value.rs | 2 +- dust-lang/src/vm.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dust-lang/src/value.rs b/dust-lang/src/value.rs index c9a1899..c0fdcde 100644 --- a/dust-lang/src/value.rs +++ b/dust-lang/src/value.rs @@ -557,7 +557,7 @@ pub struct Function { impl Function { pub fn call( self, - type_arguments: Option>, + _type_arguments: Option>, value_arguments: Option>, variables: &HashMap, ) -> Result, VmError<()>> { diff --git a/dust-lang/src/vm.rs b/dust-lang/src/vm.rs index 5d3c76f..314b8fd 100644 --- a/dust-lang/src/vm.rs +++ b/dust-lang/src/vm.rs @@ -94,7 +94,7 @@ impl Vm

{ type_arguments: _, value_arguments: value_nodes, } => { - let mut values = if let Some(nodes) = value_nodes { + let values = if let Some(nodes) = value_nodes { let mut values = Vec::new(); for node in nodes { @@ -119,7 +119,7 @@ impl Vm

{ Statement::Constant(value) => Ok(Some(value.clone())), Statement::FunctionCall { function: function_node, - type_arguments: type_parameter_nodes, + type_arguments: _, value_arguments: value_parameter_nodes, } => { let function_position = function_node.position; @@ -208,8 +208,8 @@ impl Vm

{ value, Statement::BuiltInFunctionCall { function, - type_arguments, - value_arguments: mut value_argument_nodes, + type_arguments: _, + value_arguments: value_argument_nodes, }, ) = (left_value, right.statement) {