2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-25 03:51:24 +00:00
This commit is contained in:
asonix 2023-09-15 15:31:01 -04:00
parent 25d1660ecd
commit 8f3f1dcc6f
2 changed files with 8 additions and 11 deletions

View file

@ -110,18 +110,14 @@ pub(crate) fn build_chain(
let (mut path, args) = let (mut path, args) =
args.iter() args.iter()
.fold(Ok((PathBuf::default(), vec![])), |inner, (name, value)| { .try_fold((PathBuf::default(), vec![]), |inner, (name, value)| {
if let Ok(inner) = inner { parse!(inner, Identity, name, value);
parse!(inner, Identity, name, value); parse!(inner, Thumbnail, name, value);
parse!(inner, Thumbnail, name, value); parse!(inner, Resize, name, value);
parse!(inner, Resize, name, value); parse!(inner, Crop, name, value);
parse!(inner, Crop, name, value); parse!(inner, Blur, name, value);
parse!(inner, Blur, name, value);
Err(Error::from(UploadError::ParsePath)) Err(Error::from(UploadError::ParsePath))
} else {
inner
}
})?; })?;
path.push(ext); path.push(ext);

View file

@ -100,6 +100,7 @@ impl Drop for LogDroppedIngest {
} }
} }
#[allow(clippy::too_many_arguments)]
#[tracing::instrument(skip_all)] #[tracing::instrument(skip_all)]
async fn process_ingest<R, S>( async fn process_ingest<R, S>(
repo: &R, repo: &R,