Fix formatting

This commit is contained in:
Hanno Braun 2024-11-06 18:29:36 +01:00
parent b8d2d3ee79
commit f32bc7df51

View File

@ -19,17 +19,18 @@ pub fn export(mesh: &Mesh) -> anyhow::Result<()> {
.collect(),
},
triangles: threemf::model::Triangles {
triangle: triangles.into_iter()
.map(|triangle| {
triangle.map(|index| {
index.try_into().expect(
"Converting `u32` to `usize` must work on all platforms \
this software is expected to run on.",
)
triangle: triangles
.into_iter()
.map(|triangle| {
triangle.map(|index| {
index.try_into().expect(
"Converting `u32` to `usize` must work on all \
platforms this software is expected to run on.",
)
})
})
})
.map(|[v1, v2, v3]| threemf::model::Triangle { v1, v2, v3 })
.collect(),
.map(|[v1, v2, v3]| threemf::model::Triangle { v1, v2, v3 })
.collect(),
},
};