Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hakolao committed Jan 16, 2024
1 parent f42da11 commit 9165f98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/wholesome/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,12 @@ pub struct Frame<'a> {

impl<'a> Frame<'a> {
pub fn next_pass<'f>(&'f mut self) -> Option<Pass<'f, 'a>> {
match {
let res = {
let current_pass = self.num_pass;
self.num_pass += 1;
current_pass
} {
};
match res {
0 => Some(Pass::Deferred(DrawPass { frame: self })),
1 => {
self.command_buffer_builder
Expand Down

0 comments on commit 9165f98

Please sign in to comment.