This commit is contained in:
sxyazi 2025-02-26 20:46:40 +08:00
parent 5884a64250
commit 5983089c00
No known key found for this signature in database

View file

@ -64,7 +64,7 @@ impl<'a> Runtime<'a> {
} }
fn tasks(lua: &Lua) -> mlua::Result<Value> { fn tasks(lua: &Lua) -> mlua::Result<Value> {
Composer::make(lua, 10, |lua, key| { Composer::make(lua, 5, |lua, key| {
match key { match key {
b"image_alloc" => lua.to_value_with(&TASKS.image_alloc, OPTS)?, b"image_alloc" => lua.to_value_with(&TASKS.image_alloc, OPTS)?,
_ => return Ok(Value::Nil), _ => return Ok(Value::Nil),