diff --git a/toml-config/src/config.rs b/toml-config/src/config.rs index 563292a1..25a4ddaf 100644 --- a/toml-config/src/config.rs +++ b/toml-config/src/config.rs @@ -70,7 +70,7 @@ pub enum Action { idle: Duration, }, ConfigureInput { - input: Input, + input: Box, }, ConfigureOutput { out: Output, @@ -97,7 +97,7 @@ pub enum Action { level: LogLevel, }, SetRenderDevice { - dev: DrmDeviceMatch, + dev: Box, }, SetStatus { status: Option, diff --git a/toml-config/src/config/parsers/action.rs b/toml-config/src/config/parsers/action.rs index 1b7dd46e..3f1ed639 100644 --- a/toml-config/src/config/parsers/action.rs +++ b/toml-config/src/config/parsers/action.rs @@ -167,7 +167,9 @@ impl ActionParser<'_> { is_inputs_array: false, }) .map_spanned_err(ActionParserError::ConfigureInput)?; - Ok(Action::ConfigureInput { input }) + Ok(Action::ConfigureInput { + input: Box::new(input), + }) } fn parse_configure_idle(&mut self, ext: &mut Extractor<'_>) -> ParseResult { @@ -273,7 +275,7 @@ impl ActionParser<'_> { .extract(val("dev"))? .parse_map(&mut DrmDeviceMatchParser(self.0)) .map_spanned_err(ActionParserError::SetRenderDevice)?; - Ok(Action::SetRenderDevice { dev }) + Ok(Action::SetRenderDevice { dev: Box::new(dev) }) } fn parse_configure_direct_scanout(&mut self, ext: &mut Extractor<'_>) -> ParseResult {