mirror of
https://github.com/mlua-rs/mlua
synced 2026-06-08 16:05:43 +00:00
clippy
This commit is contained in:
+1
-1
@@ -448,7 +448,7 @@ impl Lua {
|
||||
///
|
||||
/// Once called, a returned Lua state is cached in the registry and can be retrieved
|
||||
/// by calling this function again.
|
||||
#[allow(clippy::missing_safety_doc)]
|
||||
#[allow(clippy::missing_safety_doc, clippy::arc_with_non_send_sync)]
|
||||
pub unsafe fn init_from_ptr(state: *mut ffi::lua_State) -> Lua {
|
||||
assert!(!state.is_null(), "Lua state is NULL");
|
||||
if let Some(lua) = Lua::try_from_ptr(state) {
|
||||
|
||||
Reference in New Issue
Block a user