Fix formatting

This commit is contained in:
Wesley Yang 2025-04-03 17:54:32 +08:00
parent 463da08fba
commit c9c921b877

View File

@ -287,14 +287,13 @@ impl Dict {
for (key, value) in self {
// choose how to pass parameters based on the function signature
let mapped = if use_two_args {
mapper.call(engine, context, [
Value::Str(key.clone()),
value.clone(),
])?
mapper.call(engine, context, [Value::Str(key.clone()), value.clone()])?
} else {
mapper.call(engine, context, [
Value::Array(array![Value::Str(key.clone()), value]),
])?
mapper.call(
engine,
context,
[Value::Array(array![Value::Str(key.clone()), value])],
)?
};
// check if the result is a dictionary key-value pair