From 6a667468ff81f1776bd49fdc8ac73af13972f6a9 Mon Sep 17 00:00:00 2001 From: gents83 Date: Sat, 9 Sep 2023 07:38:35 +0200 Subject: [PATCH] Fix format --- wgpu-core/src/device/queue.rs | 6 +----- wgpu-core/src/identity.rs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/wgpu-core/src/device/queue.rs b/wgpu-core/src/device/queue.rs index 3a0fe9e50d..e450cbe090 100644 --- a/wgpu-core/src/device/queue.rs +++ b/wgpu-core/src/device/queue.rs @@ -1086,11 +1086,7 @@ impl Global { let mut trackers = device.trackers.lock(); let transitions = trackers .textures - .set_single( - &dst, - selector, - hal::TextureUses::COPY_DST, - ) + .set_single(&dst, selector, hal::TextureUses::COPY_DST) .ok_or(TransferError::InvalidTexture(destination.texture))?; encoder.transition_textures(transitions.map(|pending| pending.into_hal(&dst))); encoder.copy_external_image_to_texture( diff --git a/wgpu-core/src/identity.rs b/wgpu-core/src/identity.rs index b6c4b35d1c..e5a8b79665 100644 --- a/wgpu-core/src/identity.rs +++ b/wgpu-core/src/identity.rs @@ -117,7 +117,7 @@ pub trait IdentityHandlerFactory { type Input: Copy; /// Create an [`IdentityManager`] implementation that can /// transform proto-ids into ids of type `I`. - /// It can return None if ids are passed from outside + /// It can return None if ids are passed from outside /// and are not generated by wgpu /// /// [`IdentityManager`]: IdentityManager