Skip to content

Commit 4ef0d58

Browse files
committed
impl Send for UserDataTypeId (in send mode)
1 parent 30b0122 commit 4ef0d58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/userdata/registry.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ impl UserDataTypeId {
9999
}
100100
}
101101

102+
#[cfg(feature = "send")]
103+
unsafe impl Send for UserDataTypeId {}
104+
102105
impl<T> UserDataRegistry<T> {
103106
#[inline(always)]
104107
pub(crate) fn new(lua: &Lua, type_id: TypeId) -> Self {

0 commit comments

Comments
 (0)