mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-07 11:28: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 {
|
||||
fn resumed(&mut self, event_loop: &ActiveEventLoop) {
|
||||
let window = Arc::new(
|
||||
event_loop
|
||||
let window = {
|
||||
let window = event_loop
|
||||
.create_window(WindowAttributes::default())
|
||||
.unwrap(),
|
||||
);
|
||||
.unwrap();
|
||||
|
||||
Arc::new(window)
|
||||
};
|
||||
let renderer =
|
||||
pollster::block_on(Renderer::new(window.clone())).unwrap();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user