Skip to content

Commit

Permalink
fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Firestar99 committed Jun 28, 2024
1 parent edf5e1e commit 51c12b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vulkano/src/command_buffer/auto/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,12 +550,12 @@ impl<'a> MergedCommandInfo<'a> {
(RenderPassCommand::None, RenderPassCommand::None) => (),
_ => return Err(b),
}
if !(self.pipeline == b.pipeline || self.pipeline == None || b.pipeline == None) {
if !(self.pipeline == b.pipeline || self.pipeline.is_none() || b.pipeline.is_none()) {
return Err(b);
}

// success
if self.pipeline == None {
if self.pipeline.is_none() {
self.pipeline = b.pipeline;
}
self.direct.append(&mut b.direct);
Expand All @@ -571,7 +571,7 @@ impl<'a> MergedCommandInfo<'a> {
RecordingCommandBuffer::add_descriptor_sets_resources(
&mut used_resources,
pipeline.as_ref(),
&state,
state,
);
}
used_resources
Expand Down

0 comments on commit 51c12b9

Please sign in to comment.