From 8a41f5aeb3ac143d731928d1c343cd9338190f0a Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 23 May 2026 19:56:41 +0200 Subject: style: format for Rust edition 2021 --- engine-ecs/src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engine-ecs/src/lib.rs') diff --git a/engine-ecs/src/lib.rs b/engine-ecs/src/lib.rs index 6450587..a60ddcd 100644 --- a/engine-ecs/src/lib.rs +++ b/engine-ecs/src/lib.rs @@ -1,12 +1,12 @@ #![deny(clippy::all, clippy::pedantic)] -use std::any::{Any, TypeId, type_name}; +use std::any::{type_name, Any, TypeId}; use std::fmt::Debug; use std::hint::cold_path; use std::mem::ManuallyDrop; use std::rc::Rc; -use std::sync::Arc; use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::Arc; use hashbrown::HashMap; @@ -21,10 +21,10 @@ use crate::component::{ }; use crate::entity::{Declaration as EntityDeclaration, Handle as EntityHandle}; use crate::error::{ + err_handler_panic, ErrorHandler, Metadata as ErrorMetadata, SourceKind as ErrorSourceKind, - err_handler_panic, }; use crate::event::component::Added; use crate::event::{Emitted as EmittedEvent, NewEvents, Submitter as EventSubmitter}; @@ -33,19 +33,19 @@ use crate::lock::Lock; use crate::pair::{ChildOf, Pair, Wildcard}; use crate::phase::{ HasSystem as PhaseHasSystem, + Phase, POST_UPDATE as POST_UPDATE_PHASE, PRE_UPDATE as PRE_UPDATE_PHASE, - Phase, START as START_PHASE, UPDATE as UPDATE_PHASE, }; use crate::query::flexible::Query as FlexibleQuery; use crate::query::{ - MAX_TERM_CNT as QUERY_MAX_TERM_CNT, TermWithFieldTuple as QueryTermWithFieldTuple, TermWithoutFieldTuple as QueryTermWithoutFieldTuple, Terms as QueryTerms, TermsBuilderInterface, + MAX_TERM_CNT as QUERY_MAX_TERM_CNT, }; use crate::sole::{Single, Sole}; use crate::stats::Stats; @@ -670,7 +670,7 @@ impl<'a> EntityComponentRef<'a> } fn new(component_id: Uid, comp: &'a ArchetypeEntityComponent, entity_id: Uid) - -> Self + -> Self { Self { component_id, -- cgit v1.2.3-18-g5258