Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
darthdeus committed Mar 20, 2024
1 parent 6de3608 commit efb8eed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion comfy-wgpu/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ impl WgpuRenderer {
RecordingMode::Landscape => (landscape_res, false),
};

self.window.request_inner_size(resolution);
self.window.request_inner_size(resolution).log_err();
// self.window.center();
}

Expand Down
4 changes: 2 additions & 2 deletions comfy/src/game_loop.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use comfy_core::winit::event::{DeviceEvent, KeyEvent};
use comfy_core::winit::event::DeviceEvent;
use winit::event_loop::ControlFlow;

use crate::*;
Expand Down Expand Up @@ -205,7 +205,7 @@ pub async fn run_comfy_main_async(
tracy_client::frame_mark();
}

Event::DeviceEvent { device_id, event } => {
Event::DeviceEvent { event, .. } => {
match event {
DeviceEvent::Key(input) => {
if let Some(keycode) =
Expand Down

0 comments on commit efb8eed

Please sign in to comment.