diff options
Diffstat (limited to 'ecs/src/query')
-rw-r--r-- | ecs/src/query/options.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/query/options.rs b/ecs/src/query/options.rs index d895073..bbbe0a8 100644 --- a/ecs/src/query/options.rs +++ b/ecs/src/query/options.rs @@ -1,7 +1,7 @@ use std::collections::HashSet; use std::marker::PhantomData; -use crate::component::{Component, Id as ComponentId}; +use crate::component::Component; use crate::EntityComponent; /// Query options. @@ -42,7 +42,7 @@ where .map(|component| component.id) .collect::<HashSet<_>>(); - ids_set.contains(&ComponentId::of::<ComponentT>()) + ids_set.contains(&ComponentT::id()) } } |