diff options
| author | HampusM <hampus@hampusmat.com> | 2026-11-05 12:18:22 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-11-05 12:18:22 +0100 |
| commit | 60c8ce6b9b2f1abd107545027bf65075234a5538 (patch) | |
| tree | 23de2db0e026747b87ad45c1c965863d28e52c1c /engine/src/ui/view | |
| parent | c0898600fd5f0db11b02056fa3dc14414aee47e5 (diff) | |
refactor(engine): use either crate instead of engine_ecs::util::Either
Diffstat (limited to 'engine/src/ui/view')
| -rw-r--r-- | engine/src/ui/view/world.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/src/ui/view/world.rs b/engine/src/ui/view/world.rs index bf92859..5667963 100644 --- a/engine/src/ui/view/world.rs +++ b/engine/src/ui/view/world.rs @@ -8,6 +8,7 @@ use ecs::phase::Phase; use ecs::query::term::{With, Without}; use ecs::sole::Is as IsSole; use ecs::system::Function as SystemFunction; +use either::Either; use crate::color::{Rgb, Rgba}; use crate::ecs::actions::Actions; @@ -16,7 +17,6 @@ use crate::ecs::component::{Info as ComponentInfo, Parts as ComponentParts}; use crate::ecs::entity::{Handle as EntityHandle, Name as EntityName}; use crate::ecs::sole::Single; use crate::ecs::uid::Uid; -use crate::ecs::util::Either; use crate::ecs::{Component, Query, World}; use crate::image::{Format as ImageFormat, Image}; use crate::reflection::{ @@ -1819,8 +1819,8 @@ fn create_enum_widgets( let disabled = variant.fields.as_ref().and_then(|fields| { fields.fields().iter().find_map(|field| { let field_name = match field.name { - Some(field_name) => Either::A(field_name), - None => Either::B(field.index), + Some(field_name) => Either::Left(field_name), + None => Either::Right(field.index), }; let Some(field_type) = field.type_reflection() else { |
