Skip to content

Commit

Permalink
Fixes lints
Browse files Browse the repository at this point in the history
  • Loading branch information
mnmaita committed Mar 30, 2024
1 parent d9fba01 commit c67e12a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -184,7 +184,7 @@ macro_rules! define_label {
fn ref_hash<H: ::std::hash::Hasher>(&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);
}
}

Expand Down

0 comments on commit c67e12a

Please sign in to comment.