Skip to content

Commit bd7284e

Browse files
committed
Adds #[allow(static_mut_refs)]
1 parent 0e9d9f1 commit bd7284e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

phper/src/errors.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ thread_local! {
482482
impl Default for ExceptionGuard {
483483
fn default() -> Self {
484484
EXCEPTION_STACK.with(|stack| unsafe {
485+
#[allow(static_mut_refs)]
485486
stack
486487
.borrow_mut()
487488
.push(replace(&mut eg!(exception), null_mut()));

phper/src/functions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ pub(crate) fn call_raw_common(call_fn: impl FnOnce(&mut ZVal)) -> crate::Result<
657657

658658
unsafe {
659659
if !eg!(exception).is_null() {
660+
#[allow(static_mut_refs)]
660661
let e = ptr::replace(&mut eg!(exception), null_mut());
661662
let obj = ZObject::from_raw(e);
662663
match ThrowObject::new(obj) {

0 commit comments

Comments
 (0)