From 03dc8cfb24ce450e321f463f88ac8942cde9b970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralph=20K=C3=BCpper?= Date: Sat, 22 Aug 2026 21:41:37 +0200 Subject: [PATCH] style: rustfmt the module-global typed-array test #8617's new integration test landed unformatted, leaving cargo fmt --check red on main. I caught this while staging #8617 and fixed it in my validation stack -- but then merged the PRs individually, so the fix never reached main. Validating a stack that carries local fixes and then merging the unfixed PRs means the thing validated is not the thing that lands. --- changelog.d/8623-fmt-module-global-ta-test.md | 4 ++++ crates/perry/tests/module_global_typed_array_read.rs | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 changelog.d/8623-fmt-module-global-ta-test.md diff --git a/changelog.d/8623-fmt-module-global-ta-test.md b/changelog.d/8623-fmt-module-global-ta-test.md new file mode 100644 index 0000000000..f010807fdc --- /dev/null +++ b/changelog.d/8623-fmt-module-global-ta-test.md @@ -0,0 +1,4 @@ +### Fixed + +- Format `crates/perry/tests/module_global_typed_array_read.rs`, which landed + unformatted with #8617 and left `cargo fmt --check` red on `main`. diff --git a/crates/perry/tests/module_global_typed_array_read.rs b/crates/perry/tests/module_global_typed_array_read.rs index f74982ecf5..09ac0920e4 100644 --- a/crates/perry/tests/module_global_typed_array_read.rs +++ b/crates/perry/tests/module_global_typed_array_read.rs @@ -117,7 +117,10 @@ fn module_global_float64array_read_is_inlined_and_bit_exact() { let fast = run(&dir.path().join("fast"), dir.path()); let slow = run(&dir.path().join("slow"), dir.path()); assert_eq!(fast, EXPECTED, "fast-path output"); - assert_eq!(slow, fast, "fast path must be bit-exact with js_typed_array_get"); + assert_eq!( + slow, fast, + "fast path must be bit-exact with js_typed_array_get" + ); } const I32_SOURCE: &str = r#" @@ -161,5 +164,8 @@ fn module_global_int32array_read_is_inlined_and_bit_exact() { let fast = run(&dir.path().join("fast32"), dir.path()); let slow = run(&dir.path().join("slow32"), dir.path()); assert_eq!(fast, I32_EXPECTED); - assert_eq!(slow, fast, "i32 fast path must be bit-exact with the runtime getter"); + assert_eq!( + slow, fast, + "i32 fast path must be bit-exact with the runtime getter" + ); }