From 0ace079eb70b0c999914a1e95a3eb1324a3b19d8 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Fri, 10 May 2024 12:05:45 -0400 Subject: Rust API : Misc cargo clippy fixes --- rust/src/filemetadata.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/filemetadata.rs') diff --git a/rust/src/filemetadata.rs b/rust/src/filemetadata.rs index 3de14a9f..0ef427c4 100644 --- a/rust/src/filemetadata.rs +++ b/rust/src/filemetadata.rs @@ -222,7 +222,7 @@ impl FileMetadata { BNCreateDatabaseWithProgress( handle, filename_ptr, - core::mem::transmute(func), + func as *mut libc::c_void, Some(cb_progress_func), ptr::null_mut(), ) @@ -271,7 +271,7 @@ impl FileMetadata { BNOpenExistingDatabaseWithProgress( self.handle, filename_ptr, - core::mem::transmute(func), + func as *mut libc::c_void, Some(cb_progress_func), ) }, -- cgit v1.3.1