From 1cb9672b4861dbc0085f19aa7f0bc1c9a74cf6f3 Mon Sep 17 00:00:00 2001 From: redxef Date: Sun, 15 Oct 2023 15:14:10 +0200 Subject: [PATCH] Reorder config fields. --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 7605c56..4b2f237 100644 --- a/src/config.rs +++ b/src/config.rs @@ -84,10 +84,10 @@ pub struct Config { pub timeout: u64, #[serde(default = "Config::default_init")] pub init: Value, - #[serde(default = "Config::default_programs")] - pub programs: Vec, #[serde(default)] pub cmd: Option, + #[serde(default = "Config::default_programs")] + pub programs: Vec, } // Config is only unsafe because Value has dyn Any in it (via Foreign). // if we don't use !Send in Foreign everything is fine.