From c67e12a1635fd7384018872a9aba4189803b2063 Mon Sep 17 00:00:00 2001 From: mnmaita <47983254+mnmaita@users.noreply.github.com> Date: Sat, 30 Mar 2024 13:03:16 +0100 Subject: [PATCH] Fixes lints --- crates/bevy_ecs/src/label.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/src/label.rs b/crates/bevy_ecs/src/label.rs index 6d03c0ca9d3484..0f1c18cf98d8fe 100644 --- a/crates/bevy_ecs/src/label.rs +++ b/crates/bevy_ecs/src/label.rs @@ -175,7 +175,7 @@ macro_rules! define_label { fn ref_eq(&self, other: &Self) -> bool { if self.as_dyn_eq().type_id() == other.as_dyn_eq().type_id() { - (self as *const Self as *const ()) == (other as *const Self as *const ()) + (self as *const Self).cast::<()>() == (other as *const Self).cast::<()>() } else { false } @@ -184,7 +184,7 @@ macro_rules! define_label { fn ref_hash(&self, state: &mut H) { use ::std::hash::Hash; self.as_dyn_eq().type_id().hash(state); - (self as *const Self as *const ()).hash(state); + (self as *const Self).cast::<()>().hash(state); } }