From b8c29b4812638565fd037df72e2e83f73f654289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralph=20K=C3=BCpper?= Date: Wed, 29 Jul 2026 05:54:03 +0200 Subject: [PATCH] style: restore rustfmt formatting on main (gc/mod.rs, temporal/now.rs) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `cargo fmt --all -- --check` has been red on `main` since #6939, which fails the required `lint` gate on every open PR. Two files drifted: an import ordering in `temporal/now.rs` and a wrapping in `gc/mod.rs`. Formatting only — no functional change. --- crates/perry-runtime/src/gc/mod.rs | 3 ++- crates/perry-runtime/src/temporal/now.rs | 11 ++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/crates/perry-runtime/src/gc/mod.rs b/crates/perry-runtime/src/gc/mod.rs index 1b9dcf7315..383e4ce562 100644 --- a/crates/perry-runtime/src/gc/mod.rs +++ b/crates/perry-runtime/src/gc/mod.rs @@ -135,7 +135,8 @@ pub(super) fn gc_collect_minor_with_trigger(trigger: GcTriggerSnapshot) -> GcCol // live bytes exceed K× the last full's live set (belt-and-suspenders for // callers that reach a minor outside the budgeted pressure path). if arena_growth_full_escalation_due() { - let outcome = gc_collect_full_mark_sweep_with_trigger(GcTriggerSnapshot::capture(trigger.kind)); + let outcome = + gc_collect_full_mark_sweep_with_trigger(GcTriggerSnapshot::capture(trigger.kind)); restore_minor_in_alloc(prev_in_alloc); return outcome; } diff --git a/crates/perry-runtime/src/temporal/now.rs b/crates/perry-runtime/src/temporal/now.rs index 280a8093f8..ed814590fe 100644 --- a/crates/perry-runtime/src/temporal/now.rs +++ b/crates/perry-runtime/src/temporal/now.rs @@ -9,9 +9,9 @@ use super::dispatch::{self, ok_or_throw, raw_arg, string}; use super::{alloc_temporal_cell, TemporalValue}; use temporal_rs::host::{HostClock, HostHooks, HostTimeZone}; +use temporal_rs::now::Now; use temporal_rs::provider::TimeZoneProvider; use temporal_rs::unix_time::EpochNanoseconds; -use temporal_rs::now::Now; use temporal_rs::{TemporalError, TemporalResult, TimeZone}; /// Perry's own `Temporal.Now` host system, replacing temporal_rs's @@ -42,7 +42,10 @@ impl HostTimeZone for PerryHostSystem { &self, provider: &(impl TimeZoneProvider + ?Sized), ) -> TemporalResult { - TimeZone::try_from_identifier_str_with_provider(crate::date::host_time_zone_name(), provider) + TimeZone::try_from_identifier_str_with_provider( + crate::date::host_time_zone_name(), + provider, + ) } } @@ -70,9 +73,7 @@ fn tz_arg(v: f64) -> Option { } pub fn instant(_args: &[f64]) -> f64 { - alloc_temporal_cell(TemporalValue::Instant(ok_or_throw( - perry_now().instant(), - ))) + alloc_temporal_cell(TemporalValue::Instant(ok_or_throw(perry_now().instant()))) } pub fn time_zone_id(_args: &[f64]) -> f64 {