Fixes for newer clippy
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2023-09-24 18:24:02 +02:00
parent d8b8559c2e
commit e666bb5a0e
11 changed files with 22 additions and 53 deletions

View File

@@ -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
}
}

View File

@@ -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,
}