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:
parent
66ec916b3d
commit
13446baf85
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue