toml-config: address clippy lints
This commit is contained in:
parent
b7b32273be
commit
a77d915898
2 changed files with 6 additions and 4 deletions
|
|
@ -70,7 +70,7 @@ pub enum Action {
|
|||
idle: Duration,
|
||||
},
|
||||
ConfigureInput {
|
||||
input: Input,
|
||||
input: Box<Input>,
|
||||
},
|
||||
ConfigureOutput {
|
||||
out: Output,
|
||||
|
|
@ -97,7 +97,7 @@ pub enum Action {
|
|||
level: LogLevel,
|
||||
},
|
||||
SetRenderDevice {
|
||||
dev: DrmDeviceMatch,
|
||||
dev: Box<DrmDeviceMatch>,
|
||||
},
|
||||
SetStatus {
|
||||
status: Option<Status>,
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue