WIP
All checks were successful
Build and deploy / build (push) Successful in 10m49s
Build and deploy / Deploy container (push) Has been skipped

This commit is contained in:
2025-10-18 04:54:45 +02:00
parent 92a0bff8c4
commit b2f3564ab4
8 changed files with 693 additions and 607 deletions

View File

@@ -27,7 +27,7 @@ impl mlua::FromLua for Box<dyn Device> {
fn from_lua(value: mlua::Value, _lua: &mlua::Lua) -> mlua::Result<Self> {
match value {
mlua::Value::UserData(ud) => {
let ud = if ud.is::<Box<dyn Device>>() {
let ud = if ud.is::<Self>() {
ud
} else {
ud.call_method::<_>("__box", ())?