aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/config.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/config.rs b/src/config.rs
index a5f47c1..97b438f 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -66,7 +66,7 @@ where
pub struct Program {
// TODO: Figure out a way to allow arbitrary unix paths (arbitrary
// non-unicode) without base64
- pub command: Vec<String>,
+ pub command: Box<[String]>,
pub timeout: Option<Duration>,
}
@@ -88,7 +88,7 @@ impl<'de> Deserialize<'de> for Program {
where
A: serde::de::SeqAccess<'de>,
{
- let vec: Vec<String> =
+ let vec: Box<[String]> =
Deserialize::deserialize(de::value::SeqAccessDeserializer::new(seq))?;
Ok(Program {
command: vec,
@@ -102,7 +102,7 @@ impl<'de> Deserialize<'de> for Program {
{
#[derive(Deserialize)]
struct Helper {
- command: Vec<String>,
+ command: Box<[String]>,
#[serde(default, deserialize_with = "deserialize_timeout_opt")]
timeout: Option<Duration>,
}
@@ -122,7 +122,7 @@ impl<'de> Deserialize<'de> for Program {
#[derive(Debug)]
pub struct Route {
- pub programs: Vec<Program>,
+ pub programs: Box<[Program]>,
pub qos: Option<QoS>,
}
@@ -144,7 +144,7 @@ impl<'de> Deserialize<'de> for Route {
where
A: serde::de::SeqAccess<'de>,
{
- let vec: Vec<Program> =
+ let vec: Box<[Program]> =
Deserialize::deserialize(de::value::SeqAccessDeserializer::new(seq))?;
Ok(Route {
programs: vec,
@@ -158,7 +158,7 @@ impl<'de> Deserialize<'de> for Route {
{
#[derive(Deserialize)]
struct Helper {
- programs: Vec<Program>,
+ programs: Box<[Program]>,
#[serde(default, deserialize_with = "deserialize_qos_opt")]
qos: Option<QoS>,
}