Merge pull request #299 from mahkoh/jorth/clippy-lints
toml-config: address clippy lints
This commit is contained in:
commit
1cbbc42c5d
2 changed files with 6 additions and 4 deletions
|
|
@ -70,7 +70,7 @@ pub enum Action {
|
||||||
idle: Duration,
|
idle: Duration,
|
||||||
},
|
},
|
||||||
ConfigureInput {
|
ConfigureInput {
|
||||||
input: Input,
|
input: Box<Input>,
|
||||||
},
|
},
|
||||||
ConfigureOutput {
|
ConfigureOutput {
|
||||||
out: Output,
|
out: Output,
|
||||||
|
|
@ -97,7 +97,7 @@ pub enum Action {
|
||||||
level: LogLevel,
|
level: LogLevel,
|
||||||
},
|
},
|
||||||
SetRenderDevice {
|
SetRenderDevice {
|
||||||
dev: DrmDeviceMatch,
|
dev: Box<DrmDeviceMatch>,
|
||||||
},
|
},
|
||||||
SetStatus {
|
SetStatus {
|
||||||
status: Option<Status>,
|
status: Option<Status>,
|
||||||
|
|
|
||||||
|
|
@ -167,7 +167,9 @@ impl ActionParser<'_> {
|
||||||
is_inputs_array: false,
|
is_inputs_array: false,
|
||||||
})
|
})
|
||||||
.map_spanned_err(ActionParserError::ConfigureInput)?;
|
.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> {
|
fn parse_configure_idle(&mut self, ext: &mut Extractor<'_>) -> ParseResult<Self> {
|
||||||
|
|
@ -273,7 +275,7 @@ impl ActionParser<'_> {
|
||||||
.extract(val("dev"))?
|
.extract(val("dev"))?
|
||||||
.parse_map(&mut DrmDeviceMatchParser(self.0))
|
.parse_map(&mut DrmDeviceMatchParser(self.0))
|
||||||
.map_spanned_err(ActionParserError::SetRenderDevice)?;
|
.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> {
|
fn parse_configure_direct_scanout(&mut self, ext: &mut Extractor<'_>) -> ParseResult<Self> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue