mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 00:00:03 +03:00
fix(enums3): Update Message::ChangeColor to take a tuple. (#457)
This commit is contained in:
parent
816b1f5e85
commit
4b6540c71a
|
@ -51,7 +51,7 @@ mod tests {
|
||||||
position: Point{ x: 0, y: 0 },
|
position: Point{ x: 0, y: 0 },
|
||||||
color: (0, 0, 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::Echo(String::from("hello world")));
|
||||||
state.process(Message::Move(Point{ x: 10, y: 15 }));
|
state.process(Message::Move(Point{ x: 10, y: 15 }));
|
||||||
state.process(Message::Quit);
|
state.process(Message::Quit);
|
||||||
|
|
Loading…
Reference in a new issue