Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaopengli89 committed Jan 4, 2023
1 parent af31745 commit 783ff3e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions wgpu-hal/src/dx12/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ impl crate::CommandEncoder<super::Api> for super::CommandEncoder {
if reset_result.is_ok() {
break Some(list);
} else {
list.destroy();
unsafe {
list.destroy();
}
}
} else {
break None;
Expand Down Expand Up @@ -271,7 +273,9 @@ impl crate::CommandEncoder<super::Api> for super::CommandEncoder {
if list.close().into_result().is_ok() {
self.free_lists.push(list);
} else {
list.destroy();
unsafe {
list.destroy();
}
}
}
}
Expand All @@ -285,7 +289,9 @@ impl crate::CommandEncoder<super::Api> for super::CommandEncoder {
if cmd_buf.closed {
self.free_lists.push(cmd_buf.raw);
} else {
cmd_buf.raw.destroy();
unsafe {
cmd_buf.raw.destroy();
}
}
}
self.allocator.reset();
Expand Down

0 comments on commit 783ff3e

Please sign in to comment.