diff options
author | HampusM <hampus@hampusmat.com> | 2025-04-08 17:19:30 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-04-08 17:19:30 +0200 |
commit | 7276f9c72f53f02820c3238f72d099221daf7afd (patch) | |
tree | d523d0c01a9cd35bcc44401b46d9c8d36bbb10c1 /ecs/examples | |
parent | e4818dd4f0a57a2c9af8859253f570607f64bb12 (diff) |
refactor(ecs): replace optional components with Option query term
Diffstat (limited to 'ecs/examples')
-rw-r--r-- | ecs/examples/optional_component.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ecs/examples/optional_component.rs b/ecs/examples/optional_component.rs index 488dad2..ebc9115 100644 --- a/ecs/examples/optional_component.rs +++ b/ecs/examples/optional_component.rs @@ -21,7 +21,7 @@ pub struct CatName name: String, } -fn pet_cats(query: Query<(&CatName, &mut PettingCapacity, &Option<Aggressivity>)>) +fn pet_cats(query: Query<(&CatName, &mut PettingCapacity, Option<&Aggressivity>)>) { for (cat_name, mut petting_capacity, aggressivity) in &query { let Some(aggressivity) = aggressivity else { |