Skip to content

Commit

Permalink
Inline redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Nov 15, 2024
1 parent 466efa2 commit 73c9600
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/fj-window/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 73c9600

Please sign in to comment.