|
|
@ -41,10 +41,9 @@ impl State {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn process(&mut self, message: Message) {
|
|
|
|
fn process(&mut self, message: Message) {
|
|
|
|
// TODO: create a match expression to process the different message
|
|
|
|
// TODO: create a match expression to process the different message variants
|
|
|
|
// variants
|
|
|
|
// Remember: When passing a tuple as a function argument, you'll need extra parentheses:
|
|
|
|
// Remember: When passing a tuple as a function argument, you'll need
|
|
|
|
// fn function((t, u, p, l, e))
|
|
|
|
// extra parentheses: fn function((t, u, p, l, e))
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|