From 73c960045ae6d9b8f9382bbd1b4c4c1ae22c33e8 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 15 Nov 2024 19:31:33 +0100 Subject: [PATCH] Inline redundant variable --- crates/fj-window/src/display.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/fj-window/src/display.rs b/crates/fj-window/src/display.rs index ee4645c91..7b1719cf5 100644 --- a/crates/fj-window/src/display.rs +++ b/crates/fj-window/src/display.rs @@ -121,11 +121,10 @@ impl ApplicationHandler for DisplayState { _ => {} }, WindowEvent::Resized(size) => { - let size = ScreenSize { + viewer.on_screen_resize(ScreenSize { width: size.width, height: size.height, - }; - viewer.on_screen_resize(size); + }); } WindowEvent::MouseInput { state, button, .. } => match state { ElementState::Pressed => {