Add Zen variant to emulator::Mode 🧘

This commit is contained in:
Héctor Ramón Jiménez 2025-08-28 11:44:18 +02:00
parent 751714388c
commit 71ee026444
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 130 additions and 85 deletions

View file

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