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
1f4d4f167d
commit
1271ff2cc7
1 changed files with 7 additions and 11 deletions
|
@ -110,18 +110,14 @@ pub(crate) fn build_chain(
|
|||
|
||||
let (mut path, args) =
|
||||
args.iter()
|
||||
.fold(Ok((PathBuf::default(), vec![])), |inner, (name, value)| {
|
||||
if let Ok(inner) = inner {
|
||||
parse!(inner, Identity, name, value);
|
||||
parse!(inner, Thumbnail, name, value);
|
||||
parse!(inner, Resize, name, value);
|
||||
parse!(inner, Crop, name, value);
|
||||
parse!(inner, Blur, name, value);
|
||||
.try_fold((PathBuf::default(), vec![]), |inner, (name, value)| {
|
||||
parse!(inner, Identity, name, value);
|
||||
parse!(inner, Thumbnail, name, value);
|
||||
parse!(inner, Resize, name, value);
|
||||
parse!(inner, Crop, name, value);
|
||||
parse!(inner, Blur, name, value);
|
||||
|
||||
Err(Error::from(UploadError::ParsePath))
|
||||
} else {
|
||||
inner
|
||||
}
|
||||
Err(Error::from(UploadError::ParsePath))
|
||||
})?;
|
||||
|
||||
path.push(ext);
|
||||
|
|
Loading…
Reference in a new issue