From cdf82553cefb4feaeae40769f936ee9da24f4c9a Mon Sep 17 00:00:00 2001
From: Antoine Barthelemy <abarthel@student.42.fr>
Date: Tue, 18 Aug 2020 14:59:42 +0200
Subject: [PATCH] fix(simplify): eliminating struct type in TODOenum

Going back to what was initially intended by nyxton in order to simply exercise.
Using primitive types makes it much easier to understand, this way there is just destructuring nested structs and enums in match - which is already a lot.
"Nesting" struct in enum makes it unusual and somehow difficult.
---
 exercises/enums/enums3.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exercises/enums/enums3.rs b/exercises/enums/enums3.rs
index 178b40c..16a5720 100644
--- a/exercises/enums/enums3.rs
+++ b/exercises/enums/enums3.rs
@@ -51,9 +51,9 @@ mod tests {
             position: Point { x: 0, y: 0 },
             color: (0, 0, 0),
         };
-        state.process(Message::ChangeColor((255, 0, 255)));
+        state.process(Message::ChangeColor(255, 0, 255));
         state.process(Message::Echo(String::from("hello world")));
-        state.process(Message::Move(Point { x: 10, y: 15 }));
+        state.process(Message::Move { x: 10, y: 15 });
         state.process(Message::Quit);
 
         assert_eq!(state.color, (255, 0, 255));