mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-20 23:45:18 +01:00
apply copilot suggestion
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -79,7 +79,9 @@ impl VfsMod {
|
||||
|
||||
// #Safety:
|
||||
// the callback wrapper in the extension library is FnOnce, so we know
|
||||
// that the into_raw/from_raw contract will hold
|
||||
/// # Safety
|
||||
/// the callback wrapper in the extension library is FnOnce, so we know
|
||||
/// that the into_raw/from_raw contract will hold
|
||||
unsafe extern "C" fn callback_fn(result: i32, ctx: SendPtr) {
|
||||
let completion = Completion {
|
||||
inner: (Arc::from_raw(ctx.inner().as_ptr() as *mut CompletionInner)),
|
||||
|
||||
Reference in New Issue
Block a user