this time clippy may be right
This commit is contained in:
parent
24bc9acb7b
commit
703a680ff7
|
|
@ -99,7 +99,7 @@ impl Eval for Expression {
|
||||||
let Some(function) = scope.functions.get(callee.as_str()).cloned() else {
|
let Some(function) = scope.functions.get(callee.as_str()).cloned() else {
|
||||||
panic!("attempt to call non-existent function {callee}")
|
panic!("attempt to call non-existent function {callee}")
|
||||||
};
|
};
|
||||||
let args = args.into_iter().map(|arg| arg.eval(scope)).collect();
|
let args = args.iter().map(|arg| arg.eval(scope)).collect();
|
||||||
(function.inner)(scope, args)
|
(function.inner)(scope, args)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user