This commit is contained in:
@@ -36,10 +36,7 @@ pub(super) struct FFIHandle<T> {
|
||||
|
||||
impl<T> Clone for FFIHandle<T> {
|
||||
fn clone(&self) -> Self {
|
||||
Self {
|
||||
handle: self.handle,
|
||||
_marker: std::marker::PhantomData,
|
||||
}
|
||||
*self
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ mod ffi_handle;
|
||||
/// The foreign function interfaces for that static data
|
||||
mod static_data;
|
||||
|
||||
pub(self) use ffi_handle::*;
|
||||
use ffi_handle::*;
|
||||
|
||||
/// Helper type for clearer functions.
|
||||
#[repr(transparent)]
|
||||
@@ -86,15 +86,15 @@ macro_rules! ffi_handle_vec_stringkey_getters {
|
||||
};
|
||||
}
|
||||
|
||||
pub(self) use ffi_handle_arc_dyn_getter;
|
||||
pub(self) use ffi_handle_arc_stringkey_getter;
|
||||
pub(self) use ffi_handle_vec_stringkey_getters;
|
||||
pub(self) use ffi_handle_vec_value_getters;
|
||||
use ffi_handle_arc_dyn_getter;
|
||||
use ffi_handle_arc_stringkey_getter;
|
||||
use ffi_handle_vec_stringkey_getters;
|
||||
use ffi_handle_vec_value_getters;
|
||||
use std::ffi::{c_char, CString};
|
||||
|
||||
/// Helper utility class to wrap a pointer for extern functions.
|
||||
#[repr(C)]
|
||||
pub(self) struct ExternPointer<T: ?Sized> {
|
||||
struct ExternPointer<T: ?Sized> {
|
||||
/// The wrapped pointer.
|
||||
ptr: *mut T,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user