From c8be33c7209cdfcd52c49d4e53aba74b494ff147 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 18 Nov 2026 23:38:02 -0800 Subject: [PATCH] :art: Bind the level queries' shapes so rustfmt keeps the loop on a line rustfmt broke the for line of the GPU test's level queries at 101 columns, with its brace on a line of its own. A binding of the shapes keeps the loop on one line and rustfmt's check green. --- crates/reims-vgpu-vulkan/src/rt_platform/device.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/reims-vgpu-vulkan/src/rt_platform/device.rs b/crates/reims-vgpu-vulkan/src/rt_platform/device.rs index b46b3299f..530e966ca 100644 --- a/crates/reims-vgpu-vulkan/src/rt_platform/device.rs +++ b/crates/reims-vgpu-vulkan/src/rt_platform/device.rs @@ -953,7 +953,8 @@ mod tests { } let bgra8 = device.pixel_format_info(80); assert_eq!(bgra8.name.as_deref(), Some("MTLPixelFormatBGRA8Unorm")); - for (pixel_format, width, height) in [(80, 64, 32), (70, 17, 3), (130, 33, 9), (252, 5, 5)] { + let shapes = [(80, 64, 32), (70, 17, 3), (130, 33, 9), (252, 5, 5)]; + for (pixel_format, width, height) in shapes { for (options, flags) in [(0, 0), (2, 0), (0, 1), (0, 2)] { let q = TextureLevelQuery { pixel_format,