summaryrefslogtreecommitdiff
path: root/engine/src/file_format/wavefront
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/file_format/wavefront')
-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<_>, _>>()
}