Flatten level of indentation

This commit is contained in:
Hanno Braun 2024-11-15 18:52:45 +01:00
parent 525bc8588d
commit 0d27e84e83

View File

@ -60,14 +60,14 @@ impl Viewer {
/// Handle an input event
pub fn handle_input_event(&mut self, event: InputEvent) {
if let Some(focus_point) = self.focus_point {
let Some(focus_point) = self.focus_point else {
return;
};
match event {
InputEvent::Translation { previous, current } => {
self.camera.apply_translation(
previous,
current,
focus_point,
);
self.camera
.apply_translation(previous, current, focus_point);
}
InputEvent::Rotation { angle_x, angle_y } => {
self.camera.apply_rotation(angle_x, angle_y, focus_point);
@ -77,7 +77,6 @@ impl Viewer {
}
};
}
}
/// Handle the screen being resized
pub fn handle_screen_resize(&mut self, screen_size: ScreenSize) {