summaryrefslogtreecommitdiff
path: root/engine/src/file_format/wavefront/obj.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-11-05 12:18:22 +0100
committerHampusM <hampus@hampusmat.com>2026-11-05 12:18:22 +0100
commit60c8ce6b9b2f1abd107545027bf65075234a5538 (patch)
tree23de2db0e026747b87ad45c1c965863d28e52c1c /engine/src/file_format/wavefront/obj.rs
parentc0898600fd5f0db11b02056fa3dc14414aee47e5 (diff)
refactor(engine): use either crate instead of engine_ecs::util::Either
Diffstat (limited to 'engine/src/file_format/wavefront/obj.rs')
-rw-r--r--engine/src/file_format/wavefront/obj.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/src/file_format/wavefront/obj.rs b/engine/src/file_format/wavefront/obj.rs
index d1a1bf3..7210465 100644
--- a/engine/src/file_format/wavefront/obj.rs
+++ b/engine/src/file_format/wavefront/obj.rs
@@ -6,7 +6,7 @@ use std::collections::HashMap;
use std::fs::read_to_string;
use std::path::PathBuf;
-use engine_ecs::util::Either;
+use either::Either;
use crate::file_format::wavefront::common::{
keyword,
@@ -234,8 +234,8 @@ impl Obj
)?)?)
})
.flat_map(|res| match res {
- Ok(inner) => Either::A(inner.into_iter().map(Ok)),
- Err(err) => Either::B(vec![Err(err)].into_iter()),
+ Ok(inner) => Either::Left(inner.into_iter().map(Ok)),
+ Err(err) => Either::Right(vec![Err(err)].into_iter()),
})
.collect::<Result<Vec<_>, _>>()
}