mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-11-30 04:39:04 +01:00
Fixup warnings on latest nightly
This commit is contained in:
parent
0773d72e79
commit
e1a5260a6e
@ -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() ->
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user