From f071cafe513ffb978e5d028a77c686d6b5904fb4 Mon Sep 17 00:00:00 2001 From: expectocode Date: Tue, 31 Dec 2019 00:11:11 +0000 Subject: [PATCH] Add comment about manual PartialEq impl --- src/geometry.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/geometry.rs b/src/geometry.rs index d1e7c5a..8bab225 100644 --- a/src/geometry.rs +++ b/src/geometry.rs @@ -67,6 +67,7 @@ impl Add for Point { } } +// These can be derived too, but implement them for demonstration. impl PartialEq for Point { fn eq(&self, other: &Self) -> bool { self.x == other.x && self.y == other.y