Skip to content

Commit

Permalink
Fix clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
David Peter committed Dec 1, 2023
1 parent 495a08e commit 9499cf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub fn run(options: CliOptions) -> Result<()> {
// Close events
if input.key_pressed(VirtualKeyCode::Escape)
|| input.key_pressed(VirtualKeyCode::Q)
|| input.quit()
|| (input.close_requested() || input.destroyed())
{
*control_flow = ControlFlow::Exit;
return;
Expand Down Expand Up @@ -321,7 +321,7 @@ pub fn run(options: CliOptions) -> Result<()> {

// Resize the window
if let Some(size) = input.window_resized() {
pixels.resize_surface(size.width, size.height);
let _ = pixels.resize_surface(size.width, size.height);
gui.resize(size.width, size.height);
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/gui.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use egui::{ClippedPrimitive, TexturesDelta, WidgetText};
use std::time::Instant;

use egui_wgpu::renderer::ScreenDescriptor;
use egui_wgpu::Renderer;
Expand All @@ -16,7 +15,6 @@ use crate::{

pub struct Gui {
// State for egui.
start_time: Instant,
egui_ctx: egui::Context,
egui_state: egui_winit::State,
screen_descriptor: ScreenDescriptor,
Expand Down Expand Up @@ -47,7 +45,6 @@ impl Gui {
let textures = TexturesDelta::default();

Self {
start_time: Instant::now(),
egui_ctx,
egui_state,
screen_descriptor,
Expand Down

0 comments on commit 9499cf1

Please sign in to comment.