mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: allow transmute annotations (#7494)
This commit is contained in:
@ -911,6 +911,7 @@ unsafe fn handle_slow_readers_callback(callback: HandleSlowReadersCallback) -> f
|
||||
std::mem::forget(closure);
|
||||
|
||||
// Cast the closure to FFI `extern fn` type.
|
||||
#[allow(clippy::missing_transmute_annotations)]
|
||||
Some(std::mem::transmute(closure_ptr))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user