From 6b920312cb8368ec1aa1d2fff0f914c4614710f0 Mon Sep 17 00:00:00 2001 From: Matthew Gapp <61894094+matthewgapp@users.noreply.github.com> Date: Sun, 1 Dec 2024 11:35:39 -0600 Subject: [PATCH] wip: remove pub from malloc --- crates/duckdb/src/vtab/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/duckdb/src/vtab/mod.rs b/crates/duckdb/src/vtab/mod.rs index b06c85cf..43bf9b54 100644 --- a/crates/duckdb/src/vtab/mod.rs +++ b/crates/duckdb/src/vtab/mod.rs @@ -30,7 +30,7 @@ use std::mem::size_of; /// used for the bind_info and init_info /// # Safety /// This function is obviously unsafe -pub unsafe fn malloc_data_c() -> *mut T { +unsafe fn malloc_data_c() -> *mut T { duckdb_malloc(size_of::()).cast() } @@ -39,7 +39,7 @@ pub unsafe fn malloc_data_c() -> *mut T { /// # Safety /// This function is obviously unsafe /// TODO: maybe we should use a Free trait here -pub unsafe extern "C" fn drop_data_c(v: *mut c_void) { +unsafe extern "C" fn drop_data_c(v: *mut c_void) { let actual = v.cast::(); (*actual).free(); duckdb_free(v);