1
0
mirror of https://github.com/bobwen-dev/hunter synced 2025-04-12 00:55:41 +02:00

µrefactor PartialEq for WidgetCore

This commit is contained in:
snpefk 2020-03-12 13:33:17 +03:00 committed by GitHub
parent b298bf3367
commit 2236876ac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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