diff options
author | HampusM <hampus@hampusmat.com> | 2024-11-11 00:24:27 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-11-11 00:24:27 +0100 |
commit | 7c5c87d316df31bfe732872df10eaa1a4b6f3a12 (patch) | |
tree | dd8a0f1f3131ba279569899a008c058216c5d1e9 /ecs/src/component.rs | |
parent | 06750934c33a8b1458d60fe8d877bbf29ffda955 (diff) |
refactor(ecs): fix clippy lints
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, |