mirror of
https://github.com/hannobraun/Fornjot
synced 2025-09-16 06:07:58 +00:00
Simplify
This commit is contained in:
parent
e3caa6837b
commit
decf1aaeef
@ -12,12 +12,13 @@ use crate::mesh::Mesh;
|
|||||||
pub fn render(_: &Mesh) -> anyhow::Result<()> {
|
pub fn render(_: &Mesh) -> anyhow::Result<()> {
|
||||||
let event_loop = EventLoop::new()?;
|
let event_loop = EventLoop::new()?;
|
||||||
|
|
||||||
let mut app = App { window: None };
|
let mut app = App::default();
|
||||||
event_loop.run_app(&mut app)?;
|
event_loop.run_app(&mut app)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
struct App {
|
struct App {
|
||||||
window: Option<Arc<Window>>,
|
window: Option<Arc<Window>>,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user