mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +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?;
|
tmp_one.close().await?;
|
||||||
|
|
||||||
let output_format = video_codec.to_output_format();
|
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 {
|
let process = if permit_audio {
|
||||||
Process::run(
|
Process::run(
|
||||||
|
|
|
@ -12,6 +12,7 @@ use std::path::PathBuf;
|
||||||
use tokio::io::AsyncReadExt;
|
use tokio::io::AsyncReadExt;
|
||||||
use tracing::Instrument;
|
use tracing::Instrument;
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
#[tracing::instrument(skip(hash))]
|
#[tracing::instrument(skip(hash))]
|
||||||
pub(crate) async fn generate<R: FullRepo, S: Store + 'static>(
|
pub(crate) async fn generate<R: FullRepo, S: Store + 'static>(
|
||||||
repo: &R,
|
repo: &R,
|
||||||
|
@ -42,6 +43,7 @@ pub(crate) async fn generate<R: FullRepo, S: Store + 'static>(
|
||||||
Ok((details, bytes))
|
Ok((details, bytes))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
#[tracing::instrument(skip(hash))]
|
#[tracing::instrument(skip(hash))]
|
||||||
async fn process<R: FullRepo, S: Store + 'static>(
|
async fn process<R: FullRepo, S: Store + 'static>(
|
||||||
repo: &R,
|
repo: &R,
|
||||||
|
|
Loading…
Reference in a new issue