File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,11 @@ pub struct LightUserData(pub *mut c_void);
24
24
/// difficult to use than the normal handle types, it is Send + Sync + 'static, which means that it
25
25
/// can be used in many situations where it would be impossible to store a regular handle value.
26
26
///
27
- /// Be warned, If you place this into Lua via a `UserData` type, it is *very easy* to accidentally
28
- /// cause reference cycles that the Lua garbage collector cannot resolve. Instead of placing a
29
- /// `RegistryKey` into a `UserData` type, prefer instead to use `UserData::set_user_value` /
30
- /// `UserData::get_user_value`.
27
+ /// Be warned, If you place this into Lua via a `UserData` type or a rust callback, it is *very
28
+ /// easy* to accidentally cause reference cycles that the Lua garbage collector cannot resolve.
29
+ /// Instead of placing a `RegistryKey` into a `UserData` type, prefer instead to use
30
+ /// `UserData::set_user_value` / `UserData::get_user_value`, and instead of moving a RegistryKey
31
+ /// into a callback, prefer `Lua::scope`.
31
32
pub struct RegistryKey {
32
33
pub ( crate ) registry_id : c_int ,
33
34
pub ( crate ) unref_list : Arc < Mutex < Option < Vec < c_int > > > > ,
You can’t perform that action at this time.
0 commit comments