Fix feature flags for owned types

This commit is contained in:
Alex Orlenko
2023-04-14 01:09:50 +01:00
parent aaf0a5e44a
commit 0fccdfed5c
6 changed files with 27 additions and 17 deletions
+1 -1
View File
@@ -2472,7 +2472,7 @@ impl Lua {
}
}
#[cfg(feature = "unstable")]
#[cfg(all(feature = "unstable", not(feature = "send")))]
pub(crate) fn adopt_owned_ref(&self, loref: crate::types::LuaOwnedRef) -> LuaRef {
assert!(
Arc::ptr_eq(&loref.lua.0, &self.0),