Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually implement common traits for EventId #8529

Merged
merged 1 commit into from
May 4, 2023

Conversation

konsti219
Copy link
Contributor

Objective

Fixes #8528

Solution

Manually implement PartialEq, Eq, PartialOrd, Ord, and Hash for bevy_ecs::event::EventId. These new implementations do not rely on the Event implementing the same traits allowing EventId to be used in more cases.

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2023

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

@mockersf mockersf added A-ECS Entities, components, systems, and events C-Code-Quality A section of code that is hard to understand or change labels May 2, 2023
# Objective
Fixes bevyengine#8528

## Solution
Manually implement `PartialEq`, `Eq`, `PartialOrd`, `Ord`, and `Hash` for `bevy_ecs::event::EventId`.
These new implementations do not rely on the `Event` implementing the same traits allowing `EventId` to be used in more cases.
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label May 4, 2023
@mockersf mockersf added this pull request to the merge queue May 4, 2023
Merged via the queue into bevyengine:main with commit 5da8af7 May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Code-Quality A section of code that is hard to understand or change S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bevy_ecs::event::EventId should manually implement Eq, PartialEq, Ord, PartialOrd, and Hash
4 participants