Reorder config fields.

This commit is contained in:
redxef 2023-10-15 15:14:10 +02:00
parent d0ad88af6a
commit 1cb9672b48
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -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<ProgramEntry>,
#[serde(default)]
pub cmd: Option<String>,
#[serde(default = "Config::default_programs")]
pub programs: Vec<ProgramEntry>,
}
// Config is only unsafe because Value has dyn Any in it (via Foreign).
// if we don't use !Send in Foreign everything is fine.