We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7f69b0 commit 016c8e3Copy full SHA for 016c8e3
phichain-editor/src/project.rs
@@ -200,7 +200,7 @@ fn unload_project_system(
200
let to_remove = world
201
.query::<Entity>()
202
.iter(world)
203
- .filter(|entity| world.inspect_entity(*entity).collect::<Vec<_>>().len() == 0)
+ .filter(|entity| world.inspect_entity(*entity).collect::<Vec<_>>().is_empty())
204
.collect::<Vec<_>>();
205
for entity in to_remove {
206
world.entity_mut(entity).despawn_recursive();
0 commit comments