From 67e489e382e98fc5d101b7892f1c7e44563d60f5 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 21 Feb 2025 01:19:53 +0100 Subject: Update to Rust 2024 and fix compiler errors --- core/src/keyboard/key.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/src/keyboard') diff --git a/core/src/keyboard/key.rs b/core/src/keyboard/key.rs index 47169d9a..8edb280c 100644 --- a/core/src/keyboard/key.rs +++ b/core/src/keyboard/key.rs @@ -1252,7 +1252,7 @@ impl PartialEq for Physical { #[inline] fn eq(&self, rhs: &Code) -> bool { match self { - Physical::Code(ref code) => code == rhs, + Physical::Code(code) => code == rhs, Physical::Unidentified(_) => false, } } @@ -1269,7 +1269,7 @@ impl PartialEq for Physical { #[inline] fn eq(&self, rhs: &NativeCode) -> bool { match self { - Physical::Unidentified(ref code) => code == rhs, + Physical::Unidentified(code) => code == rhs, Physical::Code(_) => false, } } -- cgit From 9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 21 Feb 2025 01:22:56 +0100 Subject: Run `cargo fmt` --- core/src/keyboard/event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/keyboard') diff --git a/core/src/keyboard/event.rs b/core/src/keyboard/event.rs index 6e483f5b..88c57b21 100644 --- a/core/src/keyboard/event.rs +++ b/core/src/keyboard/event.rs @@ -1,6 +1,6 @@ +use crate::SmolStr; use crate::keyboard::key; use crate::keyboard::{Key, Location, Modifiers}; -use crate::SmolStr; /// A keyboard event. /// -- cgit