solved the problem by modifying enum Message

This commit is contained in:
eribertt_fedorabox 2021-07-04 13:10:18 +03:00
parent 435d485978
commit 14c156b7ac

View file

@ -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,
} }