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 {