Skip to content

Commit

Permalink
apply code style format
Browse files Browse the repository at this point in the history
  • Loading branch information
yoramdelangen committed Nov 14, 2024
1 parent c785dce commit 01fdd07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/zval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ impl<'a> FromZvalMut<'a> for &'a [&'a Zval] {

fn from_zval_mut(zval: &'a mut Zval) -> Option<Self> {
// Check if the input Zval is an array and convert it into a slice of references
if let Some(a) = zval.array(){
if let Some(a) = zval.array() {
// Collect references to each element in the array
let slice: Vec<&'a Zval> = a.values().collect();
Some(Box::leak(slice.into_boxed_slice()))
Expand Down

0 comments on commit 01fdd07

Please sign in to comment.