This commit is contained in:
Jeff 2024-08-07 18:46:40 -04:00
parent 285e9e7217
commit 35eca1f7b4
2 changed files with 5 additions and 5 deletions

View File

@ -557,7 +557,7 @@ pub struct Function {
impl Function {
pub fn call(
self,
type_arguments: Option<Vec<Type>>,
_type_arguments: Option<Vec<Type>>,
value_arguments: Option<Vec<Value>>,
variables: &HashMap<Identifier, Value>,
) -> Result<Option<Value>, VmError<()>> {

View File

@ -94,7 +94,7 @@ impl<P: Copy> Vm<P> {
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<P: Copy> Vm<P> {
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<P: Copy> Vm<P> {
value,
Statement::BuiltInFunctionCall {
function,
type_arguments,
value_arguments: mut value_argument_nodes,
type_arguments: _,
value_arguments: value_argument_nodes,
},
) = (left_value, right.statement)
{