Reorder config fields.
This commit is contained in:
parent
d0ad88af6a
commit
1cb9672b48
1 changed files with 2 additions and 2 deletions
|
@ -84,10 +84,10 @@ pub struct Config {
|
||||||
pub timeout: u64,
|
pub timeout: u64,
|
||||||
#[serde(default = "Config::default_init")]
|
#[serde(default = "Config::default_init")]
|
||||||
pub init: Value,
|
pub init: Value,
|
||||||
#[serde(default = "Config::default_programs")]
|
|
||||||
pub programs: Vec<ProgramEntry>,
|
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub cmd: Option<String>,
|
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).
|
// Config is only unsafe because Value has dyn Any in it (via Foreign).
|
||||||
// if we don't use !Send in Foreign everything is fine.
|
// if we don't use !Send in Foreign everything is fine.
|
||||||
|
|
Loading…
Reference in a new issue