Skip to content

Commit

Permalink
query_find_entity example: Remove mut. (#34)
Browse files Browse the repository at this point in the history
This wasn't needed here.
  • Loading branch information
waywardmonkeys authored Apr 8, 2024
1 parent 3c68bbc commit a6edd6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flecs_ecs/examples/query_find_entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() {
.set(Position { x: 20.0, y: 30.0 });

// Create a simple query for component Position
let query = world.query::<(&mut Position,)>();
let query = world.query::<(&Position,)>();

let entity: Option<Entity> = query.find(|(pos,)| pos.x == 20.0);

Expand Down

0 comments on commit a6edd6e

Please sign in to comment.