Skip to content

Commit 8f2076e

Browse files
committed
fmt
1 parent 97bf7d9 commit 8f2076e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

phper/src/values.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,12 @@ impl ExecuteData {
178178

179179
/// Gets associated `$this` object if exists.
180180
pub fn get_this(&mut self) -> Option<&ZObj> {
181-
unsafe {
182-
ZVal::try_from_ptr(phper_get_this(&mut self.inner))?.as_z_obj()
183-
}
181+
unsafe { ZVal::try_from_ptr(phper_get_this(&mut self.inner))?.as_z_obj() }
184182
}
185183

186184
/// Gets associated mutable `$this` object if exists.
187185
pub fn get_this_mut(&mut self) -> Option<&mut ZObj> {
188-
unsafe {
189-
ZVal::try_from_mut_ptr(phper_get_this(&mut self.inner))?.as_mut_z_obj()
190-
}
186+
unsafe { ZVal::try_from_mut_ptr(phper_get_this(&mut self.inner))?.as_mut_z_obj() }
191187
}
192188

193189
/// Gets associated called scope if it exists

0 commit comments

Comments
 (0)