Skip to content

Commit

Permalink
Use is_empty()
Browse files Browse the repository at this point in the history
Co-authored-by: Ida "Iyes" <40234599+inodentry@users.noreply.github.com>
  • Loading branch information
Shatur and inodentry authored Feb 20, 2023
1 parent 93ab94a commit 7fcad94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/schedule/condition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,6 @@ pub mod common_conditions {
/// Generates a [`Condition`](super::Condition)-satisfying closure that returns `true`
/// if there are any entities with the removed given component type.
pub fn any_component_removed<T: Component>() -> impl FnMut(RemovedComponents<T>) -> bool {
move |mut removals: RemovedComponents<T>| !removals.iter().count() != 0
move |mut removals: RemovedComponents<T>| !removals.is_empty()
}
}

0 comments on commit 7fcad94

Please sign in to comment.