Fixup warnings on latest nightly

This commit is contained in:
Daniil Gentili 2023-10-10 14:39:30 +02:00
parent 0773d72e79
commit e1a5260a6e
2 changed files with 2 additions and 1 deletions

View File

@ -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() ->

View File

@ -155,7 +155,7 @@ impl<T: RegisteredClass> ZendClassObject<T> {
/// # 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)
}