Skip to content

Commit 9d668b2

Browse files
committed
rustfmt: collapse and wrap
1 parent 079968b commit 9d668b2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • packages/php-ext-wp-mysql-parser/src

packages/php-ext-wp-mysql-parser/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,8 +1286,7 @@ unsafe extern "C" fn ast_get_gc(
12861286
// references; mutating refcounts here would un-balance the
12871287
// collector's accounting.
12881288
let mut zv: zval = std::mem::zeroed();
1289-
zv.value.obj =
1290-
(boxed.as_ref() as *const ZendObject) as *mut zend_object as *mut _;
1289+
zv.value.obj = (boxed.as_ref() as *const ZendObject) as *mut zend_object as *mut _;
12911290
zv.u1.type_info = PHP_IS_OBJECT_EX;
12921291
zend_get_gc_buffer_add_zval(buf, &mut zv);
12931292
}
@@ -1308,7 +1307,9 @@ fn install_ast_gc_handler() -> PhpResult<()> {
13081307
let class_mut = (class as *const zend_class_entry) as *mut zend_class_entry;
13091308
let default = (*class_mut).default_object_handlers;
13101309
if default.is_null() {
1311-
return Err(php_error("WP_MySQL_Native_Ast has no default object handlers"));
1310+
return Err(php_error(
1311+
"WP_MySQL_Native_Ast has no default object handlers",
1312+
));
13121313
}
13131314
let mut patched = std::ptr::read(default);
13141315
patched.get_gc = Some(ast_get_gc);

0 commit comments

Comments
 (0)