Skip to content

Commit

Permalink
rustfmt changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwerth committed Nov 6, 2023
1 parent b369037 commit 97a9d9c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion wgpu/src/backend/direct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 6 additions & 1 deletion wgpu/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 97a9d9c

Please sign in to comment.