Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Jul 29, 2024
1 parent 4d3803d commit c4d7c77
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/state/extra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,12 @@ pub(crate) struct ExtraData {

impl Drop for ExtraData {
fn drop(&mut self) {
#[cfg(feature = "module")]
unsafe {
self.inner.assume_init_drop();
#[cfg(feature = "module")]
self.lua.assume_init_drop();

self.weak.assume_init_drop();
}
unsafe { self.weak.assume_init_drop() };
*self.registry_unref_list.lock() = None;
}
}
Expand Down

0 comments on commit c4d7c77

Please sign in to comment.