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