mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 08:49:12 -04:00
fix(enums3): Update Message::ChangeColor to take a tuple. (#457)
This commit is contained in:
parent
816b1f5e85
commit
4b6540c71a
1 changed files with 1 additions and 1 deletions
|
@ -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