fix(simplify): eliminating tuple in TODO enum

Going back to what was initially intended by nyxton in order to simply exercise.
Using simple tuple type makes it much easier to understand and makes more sense as it keeps it simple. 
"Nesting" tuples makes it unusual and somehow complicated.
This commit is contained in:
Antoine Barthelemy 2020-08-18 15:23:59 +02:00 committed by GitHub
parent 66ec916b3d
commit 13446baf85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ 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::Quit);