Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
gents83 committed Sep 9, 2023
1 parent 058c8af commit 6a66746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions wgpu-core/src/device/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1086,11 +1086,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
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(
Expand Down
2 changes: 1 addition & 1 deletion wgpu-core/src/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pub trait IdentityHandlerFactory<I: id::TypedId> {
type Input: Copy;
/// Create an [`IdentityManager<I>`] 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<I>`]: IdentityManager
Expand Down

0 comments on commit 6a66746

Please sign in to comment.