Skip to content

Commit 1a74be9

Browse files
committed
Continue
1 parent 19a337d commit 1a74be9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phper/src/functions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ impl ZFunc {
651651
pub fn get_function_or_method_name(&self) -> ZString {
652652
unsafe {
653653
let s = phper_get_function_or_method_name(self.as_ptr());
654-
ZString::from_raw(s.cast())
654+
ZString::from_raw_cast(s)
655655
}
656656
}
657657

@@ -890,7 +890,7 @@ pub(crate) fn call_raw_common(call_fn: impl FnOnce(&mut ZVal)) -> crate::Result<
890890
if !eg!(exception).is_null() {
891891
#[allow(static_mut_refs)]
892892
let e = ptr::replace(&mut eg!(exception), null_mut());
893-
let obj = ZObject::from_raw(e.cast());
893+
let obj = ZObject::from_raw_cast(e);
894894
match ThrowObject::new(obj) {
895895
Ok(e) => return Err(e.into()),
896896
Err(e) => return Err(e.into()),

0 commit comments

Comments
 (0)