Skip to content

Commit

Permalink
Appease Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Feb 3, 2021
1 parent e89c0e1 commit 0791208
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,7 @@ where
.map(|b| b.item_size)
.next();

let resize = match (min_size, current) {
(Some(min), Some(current)) if min > current => true,
_ => false,
};
let resize = matches!((min_size, current), (Some(min), Some(current)) if min > current);

if resize || self.buffer_arrays.len() != render_resources.render_resources_len() {
let mut buffer_arrays = Vec::with_capacity(render_resources.render_resources_len());
Expand Down

0 comments on commit 0791208

Please sign in to comment.