From b50a5370840a1bcdb1f2eacaeb9cbfc1701b0cef Mon Sep 17 00:00:00 2001 From: Ralph Date: Sat, 18 Jul 2026 02:57:39 -0700 Subject: [PATCH] style: rustfmt get_field_by_name.rs to unbreak the lint gate `#6552` (a7dd328ff) landed `js_object_get_field_by_name` with a wrapped `let proto = ...` at line 1056 that `cargo fmt` collapses to one line. The required `lint` job is `cargo fmt --all -- --check`, so this fails on the merge ref of every open PR (and on main). Pure formatting change, no behavior. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../src/object/field_get_set/get_field_by_name.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/perry-runtime/src/object/field_get_set/get_field_by_name.rs b/crates/perry-runtime/src/object/field_get_set/get_field_by_name.rs index 3ffb076a07..989ad03030 100644 --- a/crates/perry-runtime/src/object/field_get_set/get_field_by_name.rs +++ b/crates/perry-runtime/src/object/field_get_set/get_field_by_name.rs @@ -1056,8 +1056,7 @@ pub extern "C" fn js_object_get_field_by_name( let mut child = class_id; let mut depth = 0usize; while depth < 32 { - let proto = - super::super::class_registry::class_prototype_object(child); + let proto = super::super::class_registry::class_prototype_object(child); if !proto.is_null() { let v = js_object_get_field_by_name(proto as *const _, key); // Return a value present on the pinned object even