1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-12-10 11:10:26 +02:00

fix(enums3): Update Message::ChangeColor to take a tuple. (#457)

This commit is contained in:
DEWA Kazuyuki/出羽和之 2020-07-08 18:56:43 +09:00 committed by GitHub
parent 816b1f5e85
commit 4b6540c71a
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);