mirror of
https://github.com/danog/ext-php-rs.git
synced 2025-01-22 04:51:24 +01:00
Fix clippy error in nightly - useless transmute
This commit is contained in:
parent
b93571e377
commit
a110c1710c
@ -257,7 +257,13 @@ impl ClassBuilder {
|
||||
}
|
||||
|
||||
for iface in self.interfaces {
|
||||
unsafe { zend_do_implement_interface(class, std::mem::transmute(iface)) };
|
||||
unsafe {
|
||||
zend_do_implement_interface(
|
||||
class,
|
||||
iface as *const crate::ffi::_zend_class_entry
|
||||
as *mut crate::ffi::_zend_class_entry,
|
||||
)
|
||||
};
|
||||
}
|
||||
|
||||
for (name, mut default, flags) in self.properties {
|
||||
|
@ -115,7 +115,7 @@ impl<'a> ZendCallable<'a> {
|
||||
let result = unsafe {
|
||||
_call_user_function_impl(
|
||||
std::ptr::null_mut(),
|
||||
std::mem::transmute(self.0.as_ref()),
|
||||
self.0.as_ref() as *const crate::ffi::_zval_struct as *mut crate::ffi::_zval_struct,
|
||||
&mut retval,
|
||||
len as _,
|
||||
packed.as_ptr() as *mut _,
|
||||
|
Loading…
x
Reference in New Issue
Block a user