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

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
PoignardAzur committed Apr 19, 2024
1 parent 5995ead commit 1637217
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[target.'cfg(all())']
# TODO - Replace with Cargo.toml config
rustflags = [
# Global lints/warnings.
# We do this here instead of in the crate root because we want to apply
Expand Down
4 changes: 1 addition & 3 deletions src/event_loop_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ impl EventLoopRunner {
WinitWindowEvent::MouseWheel { delta, .. } => {
let delta = match delta {
winit::event::MouseScrollDelta::LineDelta(x, y) => (x as f64, y as f64),
winit::event::MouseScrollDelta::PixelDelta(delta) => {
(delta.x as f64, delta.y as f64)
}
winit::event::MouseScrollDelta::PixelDelta(delta) => (delta.x, delta.y),
};
let delta = PhysicalPosition::new(delta.0, delta.1);
render_root.handle_pointer_event(PointerEvent::MouseWheel(
Expand Down

0 comments on commit 1637217

Please sign in to comment.