mirror of https://github.com/bobwen-dev/hunter
Merge pull request #84 from snpefk/patch-1
µRefactor PartialEq for WidgetCore
This commit is contained in:
commit
f434936e62
|
@ -33,11 +33,7 @@ pub enum Events {
|
|||
|
||||
impl PartialEq for WidgetCore {
|
||||
fn eq(&self, other: &WidgetCore) -> bool {
|
||||
if self.coordinates == other.coordinates {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
self.coordinates == other.coordinates
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue