solved the problem by modifying enum Message
This commit is contained in:
parent
435d485978
commit
14c156b7ac
|
@ -1,14 +1,14 @@
|
|||
// enums2.rs
|
||||
// Make me compile! Execute `rustlings hint enums2` for hints!
|
||||
|
||||
// I AM NOT DONE
|
||||
// DONE
|
||||
|
||||
#[derive(Debug)]
|
||||
enum Message {
|
||||
// TODO: define the different variants used below
|
||||
Move,
|
||||
Echo,
|
||||
ChangeColor,
|
||||
Move {x: i32, y: i32},
|
||||
Echo (String),
|
||||
ChangeColor (i32, i32, i32),
|
||||
Quit,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue