Skip to content

Commit e1a5260

Browse files
committed
Fixup warnings on latest nightly
1 parent 0773d72 commit e1a5260

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/cli/src/ext.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use anyhow::{Context, Result};
44
use ext_php_rs::describe::Description;
55
use libloading::os::unix::{Library, Symbol};
66

7+
#[allow(improper_ctypes_definitions)]
78
pub struct Ext {
89
// These need to be here to keep the libraries alive. The extension library needs to be alive
910
// to access the describe function. Missing here is the lifetime on `Symbol<'a, fn() ->

src/types/class_object.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl<T: RegisteredClass> ZendClassObject<T> {
155155
/// # Parameters
156156
///
157157
/// * `obj` - The zend object to get the [`ZendClassObject`] for.
158-
pub fn from_zend_obj_mut(std: &mut zend_object) -> Option<&mut Self> {
158+
#[allow(clippy::needless_pass_by_ref_mut)] pub fn from_zend_obj_mut(std: &mut zend_object) -> Option<&mut Self> {
159159
Self::_from_zend_obj(std)
160160
}
161161

0 commit comments

Comments
 (0)