Silence clippy false positives

This commit is contained in:
Alex Orlenko
2025-05-01 13:18:40 +01:00
parent 4a3dbafb6e
commit 2490dfeb38
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -66,6 +66,7 @@
// warnings at all.
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(not(send), allow(clippy::arc_with_non_send_sync))]
#![allow(clippy::ptr_eq)]
#[macro_use]
mod macros;
+1
View File
@@ -30,6 +30,7 @@ impl MemoryState {
#[cfg(not(feature = "luau"))]
#[rustversion::since(1.85)]
#[inline]
#[allow(clippy::incompatible_msrv)]
pub(crate) unsafe fn get(state: *mut ffi::lua_State) -> *mut Self {
let mut mem_state = ptr::null_mut();
if !ptr::fn_addr_eq(ffi::lua_getallocf(state, &mut mem_state), ALLOCATOR) {