From 7c5c87d316df31bfe732872df10eaa1a4b6f3a12 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 11 Nov 2024 00:24:27 +0100 Subject: refactor(ecs): fix clippy lints --- ecs/src/component.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ecs/src/component.rs') 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, -- cgit v1.2.3-18-g5258