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);