mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-12 13:49:19 +00:00
practice
This commit is contained in:
parent
c28e5c4571
commit
1f324c88a4
@ -39,7 +39,7 @@ impl State {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn process(&mut self, message: Message) {
|
fn process(&mut self, message: Message) {
|
||||||
// TODO: create a match expression to process the different message variants
|
// TODO: create a match expression to process the different message variants
|
||||||
match message {
|
match message {
|
||||||
Message::ChangeColor((x, y, z)) => self.change_color((x, y, z)),
|
Message::ChangeColor((x, y, z)) => self.change_color((x, y, z)),
|
||||||
Message::Echo(s) => self.echo(s),
|
Message::Echo(s) => self.echo(s),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user