diff --git a/crates/cli/src/ext.rs b/crates/cli/src/ext.rs index b529a75..91aaff5 100644 --- a/crates/cli/src/ext.rs +++ b/crates/cli/src/ext.rs @@ -4,6 +4,7 @@ use anyhow::{Context, Result}; use ext_php_rs::describe::Description; use libloading::os::unix::{Library, Symbol}; +#[allow(improper_ctypes_definitions)] pub struct Ext { // These need to be here to keep the libraries alive. The extension library needs to be alive // to access the describe function. Missing here is the lifetime on `Symbol<'a, fn() -> diff --git a/src/types/class_object.rs b/src/types/class_object.rs index f926c02..612ac62 100644 --- a/src/types/class_object.rs +++ b/src/types/class_object.rs @@ -155,7 +155,7 @@ impl ZendClassObject { /// # Parameters /// /// * `obj` - The zend object to get the [`ZendClassObject`] for. - pub fn from_zend_obj_mut(std: &mut zend_object) -> Option<&mut Self> { + #[allow(clippy::needless_pass_by_ref_mut)] pub fn from_zend_obj_mut(std: &mut zend_object) -> Option<&mut Self> { Self::_from_zend_obj(std) }