From 97a9d9c66e6730ecd36b04f1345b969de9b968a1 Mon Sep 17 00:00:00 2001 From: Brad Werth Date: Mon, 6 Nov 2023 15:45:45 -0800 Subject: [PATCH] rustfmt changes. --- wgpu/src/backend/direct.rs | 7 ++++++- wgpu/src/context.rs | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/wgpu/src/backend/direct.rs b/wgpu/src/backend/direct.rs index b68feb1258..42ab9cbcd3 100644 --- a/wgpu/src/backend/direct.rs +++ b/wgpu/src/backend/direct.rs @@ -1470,7 +1470,12 @@ impl crate::Context for Context { let global = &self.0; wgc::gfx_select!(device => global.device_destroy(*device)); } - fn device_mark_lost(&self, device: &Self::DeviceId, _device_data: &Self::DeviceData, message: &str) { + fn device_mark_lost( + &self, + device: &Self::DeviceId, + _device_data: &Self::DeviceData, + message: &str, + ) { // We do not provide a reason to device_lose, because all reasons other than // destroyed (which this is not) are "unknown". let global = &self.0; diff --git a/wgpu/src/context.rs b/wgpu/src/context.rs index 29268594c8..0d1e95f3b9 100644 --- a/wgpu/src/context.rs +++ b/wgpu/src/context.rs @@ -276,7 +276,12 @@ pub trait Context: Debug + WasmNotSend + WasmNotSync + Sized { device_lost_callback: DeviceLostCallback, ); fn device_destroy(&self, device: &Self::DeviceId, device_data: &Self::DeviceData); - fn device_mark_lost(&self, device: &Self::DeviceId, device_data: &Self::DeviceData, message: &str); + fn device_mark_lost( + &self, + device: &Self::DeviceId, + device_data: &Self::DeviceData, + message: &str, + ); fn device_poll( &self, device: &Self::DeviceId,