mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-16 17:02:32 +00:00
refactor: resolve clippy::useless_conversion
This commit is contained in:
parent
96c6c89e93
commit
c200597115
@ -1097,7 +1097,6 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
// `src_pending` and `dst_pending` try to hold `trackers.textures` mutably.
|
||||
let mut barriers: ArrayVec<_, 2> = src_pending
|
||||
.map(|pending| pending.into_hal(src_texture))
|
||||
.into_iter()
|
||||
.collect();
|
||||
|
||||
let dst_pending = cmd_buf
|
||||
|
@ -804,8 +804,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
};
|
||||
|
||||
unsafe {
|
||||
encoder
|
||||
.transition_textures(transition.map(|pending| pending.into_hal(dst)).into_iter());
|
||||
encoder.transition_textures(transition.map(|pending| pending.into_hal(dst)));
|
||||
encoder.transition_buffers(iter::once(barrier));
|
||||
encoder.copy_buffer_to_texture(&staging_buffer.raw, dst_raw, regions);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user