From 25b93529587dccde0aa5d9e0aa04f6c677a3b3b1 Mon Sep 17 00:00:00 2001 From: David Chavez Date: Mon, 10 Jul 2023 23:55:01 +0200 Subject: [PATCH] clippy --- src/gui.rs | 8 +++++++- src/gui/wgpu_renderer.rs | 3 +-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/gui.rs b/src/gui.rs index fd5092a..9f055e6 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -40,6 +40,12 @@ impl EventLoopWrapper { } } +impl Default for EventLoopWrapper { + fn default() -> Self { + Self::new() + } +} + pub struct Gui<'a> { // imgui imgui: imgui::Context, @@ -259,7 +265,7 @@ type OnDraw = unsafe extern "C" fn(ui: &imgui::Ui); #[no_mangle] pub extern "C" fn GUICreateEventLoop() -> Box { - let event_loop = EventLoopWrapper::new(); + let event_loop = EventLoopWrapper::default(); Box::new(event_loop) } diff --git a/src/gui/wgpu_renderer.rs b/src/gui/wgpu_renderer.rs index f2bc744..ea1f5d6 100644 --- a/src/gui/wgpu_renderer.rs +++ b/src/gui/wgpu_renderer.rs @@ -1,7 +1,6 @@ use crate::gui::{EventLoopWrapper, Frame}; use fast3d::output::RCPOutput; -use fast3d::rdp::OutputDimensions; -use fast3d_wgpu_renderer::defines::{PipelineConfig, PipelineId}; + use fast3d_wgpu_renderer::wgpu_device::WgpuGraphicsDevice; const DEPTH_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Depth32Float;