diff options
Diffstat (limited to 'ecs/src/component.rs')
-rw-r--r-- | ecs/src/component.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ecs/src/component.rs b/ecs/src/component.rs index e1f2858..513b31a 100644 --- a/ecs/src/component.rs +++ b/ecs/src/component.rs @@ -3,10 +3,10 @@ use std::fmt::Debug; use seq_macro::seq; -use crate::uid::Uid; use crate::lock::{ReadGuard, WriteGuard}; use crate::system::{ComponentRef, ComponentRefMut, Input as SystemInput}; use crate::type_name::TypeName; +use crate::uid::Uid; use crate::{EntityComponent, World}; pub mod local; @@ -50,6 +50,7 @@ pub trait Component: SystemInput + Any + TypeName } /// Returns whether this component is optional. + #[must_use] fn is_optional() -> IsOptional where Self: Sized, |