chore: allow transmute annotations (#7494)

This commit is contained in:
Matthias Seitz
2024-04-06 08:49:38 +02:00
committed by GitHub
parent b89af430e2
commit 15131c723e
3 changed files with 4 additions and 1 deletions

View File

@ -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))
}