Skip to content

Commit af5825e

Browse files
fix clippy warning
1 parent 0941a90 commit af5825e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

profiling/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ pub extern "C" fn get_module() -> &'static mut zend::ModuleEntry {
187187
globals_dtor: Some(gshutdown),
188188
globals_size: 1,
189189
#[cfg(php_zts)]
190-
globals_id_ptr: unsafe { &mut GLOBALS_ID_PTR },
190+
globals_id_ptr: unsafe { ptr::addr_of_mut!(GLOBALS_ID_PTR) },
191191
#[cfg(not(php_zts))]
192192
globals_ptr: ptr::null_mut(),
193193
..Default::default()

0 commit comments

Comments
 (0)