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