mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-05 10:19:18 +00:00
Update Message::ChangeColor in the enums3 test to take a tuple.
This commit is contained in:
parent
d355927024
commit
71ac0fcaa6
@ -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…
x
Reference in New Issue
Block a user