mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-20 11:21:14 +00:00
Clippy
This commit is contained in:
parent
0691e86b65
commit
85c5ce955d
2 changed files with 3 additions and 1 deletions
|
@ -266,7 +266,7 @@ pub(crate) async fn trancsocde_bytes(
|
|||
tmp_one.close().await?;
|
||||
|
||||
let output_format = video_codec.to_output_format();
|
||||
let audio_codec = audio_codec.unwrap_or(output_format.default_audio_codec());
|
||||
let audio_codec = audio_codec.unwrap_or_else(|| output_format.default_audio_codec());
|
||||
|
||||
let process = if permit_audio {
|
||||
Process::run(
|
||||
|
|
|
@ -12,6 +12,7 @@ use std::path::PathBuf;
|
|||
use tokio::io::AsyncReadExt;
|
||||
use tracing::Instrument;
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
#[tracing::instrument(skip(hash))]
|
||||
pub(crate) async fn generate<R: FullRepo, S: Store + 'static>(
|
||||
repo: &R,
|
||||
|
@ -42,6 +43,7 @@ pub(crate) async fn generate<R: FullRepo, S: Store + 'static>(
|
|||
Ok((details, bytes))
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
#[tracing::instrument(skip(hash))]
|
||||
async fn process<R: FullRepo, S: Store + 'static>(
|
||||
repo: &R,
|
||||
|
|
Loading…
Reference in a new issue