From cd34578e97c690c2470cabddbf943178434b3384 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Fri, 27 Oct 2023 09:42:14 +1100 Subject: [PATCH] minor changes... --- gb-vst/src/ui.rs | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/gb-vst/src/ui.rs b/gb-vst/src/ui.rs index 1be84cb..b9c97a5 100644 --- a/gb-vst/src/ui.rs +++ b/gb-vst/src/ui.rs @@ -86,7 +86,6 @@ impl Editor for Emulator { #[cfg(feature = "vulkan")] shader_path, ) - .0 }, ); Box::new(Self::new( @@ -127,7 +126,7 @@ impl EmulatorWindow { manager: Arc>>>, size: Size, #[cfg(feature = "vulkan")] shader_path: Option, - ) -> (Self, Arc) { + ) -> Self { let current_resolution = ResolutionData { real_width: size.width as u32, real_height: size.height as u32, @@ -154,17 +153,14 @@ impl EmulatorWindow { let renderer = RendererBackend::new(current_resolution, window, window_options, m.clone()); - ( - Self { - renderer, - manager: m.clone(), - emu_comms, - joypad_state: Default::default(), - latest_buf: Vec::new(), - current_resolution, - }, - m.clone(), - ) + Self { + renderer, + manager: m.clone(), + emu_comms, + joypad_state: Default::default(), + latest_buf: Vec::new(), + current_resolution, + } } fn process_events(&mut self) { @@ -239,7 +235,7 @@ impl WindowHandler for EmulatorWindow { ), ) { Ok(_) => {} - Err(e) => println!("error sending joypad update: {e:#?}"), + Err(e) => nih_error!("error sending joypad update: {e:#?}"), } } }