Merge pull request #84 from snpefk/patch-1

µRefactor PartialEq for WidgetCore
This commit is contained in:
rabite0 2020-05-21 20:36:06 +02:00 committed by GitHub
commit f434936e62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -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
}
}