🎨 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.
This commit is contained in:
1 parent
52c6af9fd3
commit
c8be33c720
1 file changed
+2
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user