mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-10 12:58:28 +00:00
Split statement into simpler ones
This commit is contained in:
parent
1ca1a7c268
commit
72fcf21580
@ -26,11 +26,13 @@ struct App {
|
|||||||
|
|
||||||
impl ApplicationHandler for App {
|
impl ApplicationHandler for App {
|
||||||
fn resumed(&mut self, event_loop: &ActiveEventLoop) {
|
fn resumed(&mut self, event_loop: &ActiveEventLoop) {
|
||||||
let window = Arc::new(
|
let window = {
|
||||||
event_loop
|
let window = event_loop
|
||||||
.create_window(WindowAttributes::default())
|
.create_window(WindowAttributes::default())
|
||||||
.unwrap(),
|
.unwrap();
|
||||||
);
|
|
||||||
|
Arc::new(window)
|
||||||
|
};
|
||||||
let renderer =
|
let renderer =
|
||||||
pollster::block_on(Renderer::new(window.clone())).unwrap();
|
pollster::block_on(Renderer::new(window.clone())).unwrap();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user