Skip to content
Snippets Groups Projects
Commit dea354d4 authored by MrGVSV's avatar MrGVSV
Browse files

Fixed PartialEq not properly checking discriminants

parent 72df5a1e
No related branches found
No related tags found
No related merge requests found
...@@ -86,8 +86,8 @@ pub enum EventType { ...@@ -86,8 +86,8 @@ pub enum EventType {
impl Eq for EventType {} impl Eq for EventType {}
impl PartialEq for EventType { impl PartialEq for EventType {
fn eq(&self, _other: &Self) -> bool { fn eq(&self, other: &Self) -> bool {
matches!(self, _other) std::mem::discriminant(self) == std::mem::discriminant(other)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment