diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-07-09 15:01:05 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-07-09 15:05:47 +0200 |
| commit | 8363705939dd35d25832db0b536b250d29d924a1 (patch) | |
| tree | 612c5b3e0db184de77b7bd4b406ba5e842a5a243 /zellij-utils/src/input/options.rs | |
| parent | Use lowercase for options (diff) | |
| download | sl0ppij-8363705939dd35d25832db0b536b250d29d924a1.tar.gz sl0ppij-8363705939dd35d25832db0b536b250d29d924a1.tar.xz sl0ppij-8363705939dd35d25832db0b536b250d29d924a1.zip | |
Add serde-alias for on_force_close
* It doesn't deserialize from the configuration otherwise,
if specified in lower-case.
Alternative: use a rename.
Diffstat (limited to 'zellij-utils/src/input/options.rs')
| -rw-r--r-- | zellij-utils/src/input/options.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zellij-utils/src/input/options.rs b/zellij-utils/src/input/options.rs index 714e6524..a2f9231c 100644 --- a/zellij-utils/src/input/options.rs +++ b/zellij-utils/src/input/options.rs @@ -8,7 +8,9 @@ use zellij_tile::data::InputMode; #[derive(Copy, Clone, Debug, PartialEq, Deserialize, Serialize)] pub enum OnForceClose { + #[serde(alias = "quit")] Quit, + #[serde(alias = "detach")] Detach, } |
