Fix a clippy warning

This commit is contained in:
Alexander Krotov
2021-01-12 08:16:48 +03:00
committed by link2xt
parent e2688f6355
commit eeba70eb49

View File

@@ -424,10 +424,7 @@ impl<'a> BlobObject<'a> {
let orientation = self.get_exif_orientation(context);
let do_scale = img.width() > img_wh || img.height() > img_wh;
let do_rotate = match orientation {
Ok(90) | Ok(180) | Ok(270) => true,
_ => false,
};
let do_rotate = matches!(orientation, Ok(90) | Ok(180) | Ok(270));
if do_scale || do_rotate {
if do_scale {