Add Zen variant to emulator::Mode 🧘
This commit is contained in:
parent
751714388c
commit
71ee026444
2 changed files with 130 additions and 85 deletions
|
|
@ -52,6 +52,7 @@ impl Ice {
|
|||
}
|
||||
"mode" => {
|
||||
mode = Some(match value.trim().to_lowercase().as_str() {
|
||||
"zen" => emulator::Mode::Zen,
|
||||
"patient" => emulator::Mode::Patient,
|
||||
"impatient" => emulator::Mode::Impatient,
|
||||
_ => {
|
||||
|
|
@ -118,6 +119,7 @@ impl std::fmt::Display for Ice {
|
|||
f,
|
||||
"mode: {}",
|
||||
match self.mode {
|
||||
emulator::Mode::Zen => "Zen",
|
||||
emulator::Mode::Patient => "Patient",
|
||||
emulator::Mode::Impatient => "Impatient",
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue