Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Jul 10, 2023
1 parent 3e8c51c commit 25b9352
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ impl EventLoopWrapper {
}
}

impl Default for EventLoopWrapper {
fn default() -> Self {
Self::new()
}
}

pub struct Gui<'a> {
// imgui
imgui: imgui::Context,
Expand Down Expand Up @@ -259,7 +265,7 @@ type OnDraw = unsafe extern "C" fn(ui: &imgui::Ui);

#[no_mangle]
pub extern "C" fn GUICreateEventLoop() -> Box<EventLoopWrapper> {
let event_loop = EventLoopWrapper::new();
let event_loop = EventLoopWrapper::default();
Box::new(event_loop)
}

Expand Down
3 changes: 1 addition & 2 deletions src/gui/wgpu_renderer.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 25b9352

Please sign in to comment.