Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle committed Nov 24, 2023
1 parent 50dad0c commit 6fdd6a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/exception.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@ pub fn throw_with_code(ex: &ClassEntry, code: i32, message: &str) -> Result<()>
/// ```
pub fn throw_object(zval: Zval) -> Result<()> {
let mut zv = core::mem::ManuallyDrop::new(zval);
unsafe {
zend_throw_exception_object(core::ptr::addr_of_mut!(zv).cast())
};
unsafe { zend_throw_exception_object(core::ptr::addr_of_mut!(zv).cast()) };
Ok(())
}

0 comments on commit 6fdd6a3

Please sign in to comment.