Simplify return type

This commit is contained in:
Hanno Braun 2024-11-06 20:55:40 +01:00
parent 36025aa4d7
commit 6482073576
2 changed files with 2 additions and 4 deletions

View File

@ -7,7 +7,7 @@ mod render;
fn main() -> anyhow::Result<()> {
let mut ops = geometry::Operations::default();
model::model(&mut ops)?;
model::model(&mut ops);
export::export(&ops)?;
app::run(ops)?;

View File

@ -1,6 +1,6 @@
use crate::geometry::Operations;
pub fn model(ops: &mut Operations) -> anyhow::Result<()> {
pub fn model(ops: &mut Operations) {
let (a, b, c, d, e, f, g, h) = ops
.vertex([-0.5, -0.5, -0.5])
.vertex([0.5, -0.5, -0.5])
@ -24,6 +24,4 @@ pub fn model(ops: &mut Operations) -> anyhow::Result<()> {
.triangle([b, c, d])
.triangle([e, f, h]) // top
.triangle([e, h, g]);
Ok(ops)
}