mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 09:58:27 +00:00
Simplify return type
This commit is contained in:
parent
36025aa4d7
commit
6482073576
@ -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)?;
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user