this time clippy may be right

This commit is contained in:
numzero 2025-04-11 21:04:24 +03:00
parent 24bc9acb7b
commit 703a680ff7

View File

@ -99,7 +99,7 @@ impl Eval for Expression {
let Some(function) = scope.functions.get(callee.as_str()).cloned() else {
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)
}
}