Skip to content

Commit 551935f

Browse files
committed
formatting
1 parent 2415a1a commit 551935f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/common.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ pub async fn create_png(
4747
// Poll the device in a blocking manner so that our future resolves.
4848
// In an actual application, `device.poll(...)` should
4949
// be called in an event loop or on another thread.
50-
device.poll(wgpu::PollType::Wait).expect("Failed to poll device");
51-
50+
device
51+
.poll(wgpu::PollType::Wait)
52+
.expect("Failed to poll device");
53+
5254
// If a file system is available, write the buffer as a PNG
5355
let has_file_system_available = cfg!(not(target_arch = "wasm32"));
5456
if !has_file_system_available {
@@ -127,7 +129,9 @@ fn get_texture_data(
127129

128130
queue.submit(Some(command_buffer));
129131

130-
device.poll(wgpu::PollType::Wait).expect("Failed to poll device");
132+
device
133+
.poll(wgpu::PollType::Wait)
134+
.expect("Failed to poll device");
131135

132136
output_buffer
133137
}

0 commit comments

Comments
 (0)