mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-25 02:51:17 +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 {
|
||||
match self.output {
|
||||
matches!(
|
||||
self.output,
|
||||
TranscodeOutputOptions::Gif
|
||||
| TranscodeOutputOptions::Video {
|
||||
video_codec: VideoCodec::Vp8 | VideoCodec::Vp9,
|
||||
..
|
||||
} => true,
|
||||
_ => false,
|
||||
}
|
||||
| TranscodeOutputOptions::Video {
|
||||
video_codec: VideoCodec::Vp8 | VideoCodec::Vp9,
|
||||
..
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fn execute(
|
||||
|
@ -368,7 +368,7 @@ async fn alpha_pixel_formats() -> Result<HashSet<String>, Error> {
|
|||
return None;
|
||||
}
|
||||
|
||||
if !format.ends_with("1") {
|
||||
if !format.ends_with('1') {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue