diff options
author | rabite0 <rabite@posteo.de> | 2020-05-21 20:36:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-21 20:36:06 +0200 |
commit | f434936e622e4cd03551a7ca09db82cb2205d9a9 (patch) | |
tree | 29b17e9957ba8be79fc79ccf9887e52a3b492036 /src/widget.rs | |
parent | b298bf336757738e8c313d214e1dcc632475f9f7 (diff) | |
parent | 2236876ac45634e1959249df236c84eda41c16e3 (diff) |
Merge pull request #84 from snpefk/patch-1
µRefactor PartialEq for WidgetCore
Diffstat (limited to 'src/widget.rs')
-rw-r--r-- | src/widget.rs | 6 |
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 } } |