Skip to content

Commit

Permalink
impl Send for UserDataTypeId (in send mode)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Nov 16, 2024
1 parent 30b0122 commit 4ef0d58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/userdata/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ impl UserDataTypeId {
}
}

#[cfg(feature = "send")]
unsafe impl Send for UserDataTypeId {}

impl<T> UserDataRegistry<T> {
#[inline(always)]
pub(crate) fn new(lua: &Lua, type_id: TypeId) -> Self {
Expand Down

0 comments on commit 4ef0d58

Please sign in to comment.