Skip to content

Commit

Permalink
toml-config: address clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
mahkoh committed Oct 19, 2024
1 parent b7b3227 commit a77d915
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions toml-config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub enum Action {
idle: Duration,
},
ConfigureInput {
input: Input,
input: Box<Input>,
},
ConfigureOutput {
out: Output,
Expand All @@ -97,7 +97,7 @@ pub enum Action {
level: LogLevel,
},
SetRenderDevice {
dev: DrmDeviceMatch,
dev: Box<DrmDeviceMatch>,
},
SetStatus {
status: Option<Status>,
Expand Down
6 changes: 4 additions & 2 deletions toml-config/src/config/parsers/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self> {
Expand Down Expand Up @@ -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<Self> {
Expand Down

0 comments on commit a77d915

Please sign in to comment.