mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 11:21:24 +00:00
Clippy
This commit is contained in:
parent
9a2f846cd1
commit
97ba4e806b
1 changed files with 8 additions and 8 deletions
|
@ -90,14 +90,14 @@ impl TranscodeOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
const fn supports_alpha(&self) -> bool {
|
const fn supports_alpha(&self) -> bool {
|
||||||
match self.output {
|
matches!(
|
||||||
|
self.output,
|
||||||
TranscodeOutputOptions::Gif
|
TranscodeOutputOptions::Gif
|
||||||
| TranscodeOutputOptions::Video {
|
| TranscodeOutputOptions::Video {
|
||||||
video_codec: VideoCodec::Vp8 | VideoCodec::Vp9,
|
video_codec: VideoCodec::Vp8 | VideoCodec::Vp9,
|
||||||
..
|
..
|
||||||
} => true,
|
}
|
||||||
_ => false,
|
)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn execute(
|
fn execute(
|
||||||
|
@ -368,7 +368,7 @@ async fn alpha_pixel_formats() -> Result<HashSet<String>, Error> {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
if !format.ends_with("1") {
|
if !format.ends_with('1') {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue