We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37b7625 commit 2eb4f7dCopy full SHA for 2eb4f7d
1 file changed
vortex-ffi/src/macros.rs
@@ -119,7 +119,7 @@ macro_rules! arc_wrapper {
119
impl $ffi_ident {
120
/// Wrap an owned object into a raw pointer.
121
pub(crate) fn new(obj: std::sync::Arc<$T>) -> *const $ffi_ident {
122
- std::sync::Arc::into_raw(obj).cast()
+ std::sync::Arc::into_raw(obj).cast::<$ffi_ident>()
123
}
124
125
/// Wrap a borrowed object into a raw pointer.
@@ -246,7 +246,7 @@ macro_rules! box_wrapper {
246
247
248
pub(crate) fn new(obj: Box<$T>) -> *mut $ffi_ident {
249
- Box::into_raw(obj).cast()
+ Box::into_raw(obj).cast::<$ffi_ident>()
250
251
252
0 commit comments