Skip to content

Commit bba644e

Browse files
committed
Fix compilation
1 parent d517338 commit bba644e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/state/extra.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,12 @@ pub(crate) struct ExtraData {
9393

9494
impl Drop for ExtraData {
9595
fn drop(&mut self) {
96-
#[cfg(feature = "module")]
9796
unsafe {
98-
self.inner.assume_init_drop();
97+
#[cfg(feature = "module")]
98+
self.lua.assume_init_drop();
99+
100+
self.weak.assume_init_drop();
99101
}
100-
unsafe { self.weak.assume_init_drop() };
101102
*self.registry_unref_list.lock() = None;
102103
}
103104
}

0 commit comments

Comments
 (0)