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