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