Skip to content

Commit

Permalink
replace match with matches!
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobhellermann committed May 15, 2021
1 parent 119951d commit 438fc2e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/bevy_render/src/shader/shader_reflect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@ fn reflect_bind_groups(
.global_variables
.iter()
.map(|(_, variable)| variable)
.filter(|variable| match variable.class {
StorageClass::Uniform | StorageClass::Storage | StorageClass::Handle => true,
_ => false,
.filter(|variable| {
matches!(
variable.class,
StorageClass::Uniform | StorageClass::Storage | StorageClass::Handle
)
})
.filter_map(|variable| {
let binding = variable.binding.as_ref()?;
Expand Down

0 comments on commit 438fc2e

Please sign in to comment.