From a77d9158987b0ac659b0c21f647e479a5d110ca9 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Sat, 19 Oct 2024 11:50:58 +0200 Subject: [PATCH] toml-config: address clippy lints --- toml-config/src/config.rs | 4 ++-- toml-config/src/config/parsers/action.rs | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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 {