Skip to content

Commit 00a93cf

Browse files
committed
fix(ci): cargo fmt drift in generator.rs (v0.5.846)
v0.5.845's lint failed on perry-transform/src/generator.rs:1566 — CI's stable rustfmt wants the .as_ref().map() chain on three lines.
1 parent c3982e8 commit 00a93cf

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Detailed changelog for Perry. See CLAUDE.md for concise summaries.
44

5+
## v0.5.846 — fix(ci): cargo fmt drift in `crates/perry-transform/src/generator.rs:1566`. v0.5.845's Tests-workflow lint job failed on `let throw_id = throw_closure_expr.as_ref().map(|_| alloc_local(next_local_id));` — CI's stable rustfmt wants the method chain broken across three lines once the expression exceeds the width budget. Single-file fix; no semantic change. Pre-tag CI prep.
6+
57
## v0.5.845 — fix(ui-macos): re-apply msg_send! commas that v0.5.844's commit dropped. v0.5.844 was meant to add comma between keyword args in 6 `msg_send!` sites (`audio_playback.rs:{270,524}`, `app.rs:{653,1583,1602}`, `widgets/qrcode.rs:95`) but only the `audio_playback.rs` sites survived the commit — the `app.rs` (3) and `qrcode.rs` (1, line 95) edits never landed. Re-applied: `crates/perry-ui-macos/src/app.rs:653` (`setFrame: new_frame, display: true, animate: true`), `app.rs:1583` (same, `animate: false`), `app.rs:1602` (same, `animate: true`), and `crates/perry-ui-macos/src/widgets/qrcode.rs:95` (`setValue: utf8_data, forKey: &*key_msg`). qrcode.rs:100 was already correct from the previous round. Pure macro-syntax catch-up; no runtime semantic change. Pre-tag CI prep for the next release-checkpoint attempt.
68

79
## v0.5.844 — fix(ci+ui-macos): 6 more msg_send! comma sites + add test_issue_654 to known_failures (v0.5.844). v0.5.842's Tests workflow turned 5 of 8 jobs green (compile-smoke ✓ post-memory-bump, plus the prior batch). 3 jobs regressed/remained: parity (NEW failure `test_issue_654_typed_array_dispatch` not in `test-parity/known_failures.json` — kept as known divergence pending #654 Linux follow-up), doc-tests (macos surfaced 6 MORE `msg_send!` comma-missing sites I missed in v0.5.841's first pass — `crates/perry-ui-macos/src/{audio_playback.rs:270/524,app.rs:653/1583/1602,widgets/qrcode.rs:95}`), doc-tests (ubuntu) — webkit dep should now be available, retesting. Local cargo check perry-ui-macos: clean. Pure CI plumbing + macro-syntax catch-up; no runtime semantic change.

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
88

99
Perry is a native TypeScript compiler written in Rust that compiles TypeScript source code directly to native executables. It uses SWC for TypeScript parsing and LLVM for code generation.
1010

11-
**Current Version:** 0.5.845
11+
**Current Version:** 0.5.846
1212

1313

1414
## TypeScript Parity Status

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ opt-level = "s" # Optimize for size in stdlib
188188
opt-level = 3
189189

190190
[workspace.package]
191-
version = "0.5.845"
191+
version = "0.5.846"
192192
edition = "2021"
193193
license = "MIT"
194194
repository = "https://github.com/PerryTS/perry"

crates/perry-transform/src/generator.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,9 @@ fn build_async_step_driver_direct(
15661566
// try/catch so the throw path is a plain rethrow — we inline it
15671567
// directly into the step body and skip the per-invocation
15681568
// `__async_throw` allocation entirely.
1569-
let throw_id = throw_closure_expr.as_ref().map(|_| alloc_local(next_local_id));
1569+
let throw_id = throw_closure_expr
1570+
.as_ref()
1571+
.map(|_| alloc_local(next_local_id));
15701572
let step_id = alloc_local(next_local_id);
15711573

15721574
// Step closure params + locals

0 commit comments

Comments
 (0)