-
Hi, I am updating a project to mlua 0.10.3 from 0.9.9 I now get:
In this test The error occurs here at the call to: Is there some other change that I need to make? Is there somehow AnyUserData or add_function_mut has changed? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
You wrapped your type to
it's a logic error. The second things is, you still creating the old
You need to either remove |
Beta Was this translation helpful? Give feedback.
-
ok, I added that to alleviate another error. |
Beta Was this translation helpful? Give feedback.
-
I removed the wrapper and indeed it's not needed. I am having to use I am using these inside of an outer scoped call, but this worked previously. |
Beta Was this translation helpful? Give feedback.
If you can implement
UserData
for your type, why would you needregister_userdata_type
? You can add all methods toimpl UserData
.You can redefine the same
fn register
method inUserData
to manipulateUserDataRegistry
register_userdata_type
was built for the case when you cannot implementUserData
on foreign object because of Rust orphan rule.