From 2236876ac45634e1959249df236c84eda41c16e3 Mon Sep 17 00:00:00 2001 From: snpefk Date: Thu, 12 Mar 2020 13:33:17 +0300 Subject: =?UTF-8?q?=C2=B5refactor=20PartialEq=20for=20WidgetCore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget.rs | 6 +----- 1 file changed, 1 insertion(+), 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 } } -- cgit v1.2.3