1
0
Fork 0
forked from wry/wry

Merge pull request #299 from mahkoh/jorth/clippy-lints

toml-config: address clippy lints
This commit is contained in:
mahkoh 2024-10-19 11:54:23 +02:00 committed by GitHub
commit 1cbbc42c5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

@ -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>,

View file

@ -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> {