summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrabite0 <rabite@posteo.de>2020-05-21 20:36:06 +0200
committerGitHub <noreply@github.com>2020-05-21 20:36:06 +0200
commitf434936e622e4cd03551a7ca09db82cb2205d9a9 (patch)
tree29b17e9957ba8be79fc79ccf9887e52a3b492036
parentb298bf336757738e8c313d214e1dcc632475f9f7 (diff)
parent2236876ac45634e1959249df236c84eda41c16e3 (diff)
Merge pull request #84 from snpefk/patch-1
µRefactor PartialEq for WidgetCore
-rw-r--r--src/widget.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/widget.rs b/src/widget.rs
index e4dd677..0efcda7 100644
--- a/src/widget.rs
+++ b/src/widget.rs
@@ -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
}
}