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