mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
Fix a clippy warning
This commit is contained in:
committed by
link2xt
parent
e2688f6355
commit
eeba70eb49
@@ -424,10 +424,7 @@ impl<'a> BlobObject<'a> {
|
|||||||
let orientation = self.get_exif_orientation(context);
|
let orientation = self.get_exif_orientation(context);
|
||||||
|
|
||||||
let do_scale = img.width() > img_wh || img.height() > img_wh;
|
let do_scale = img.width() > img_wh || img.height() > img_wh;
|
||||||
let do_rotate = match orientation {
|
let do_rotate = matches!(orientation, Ok(90) | Ok(180) | Ok(270));
|
||||||
Ok(90) | Ok(180) | Ok(270) => true,
|
|
||||||
_ => false,
|
|
||||||
};
|
|
||||||
|
|
||||||
if do_scale || do_rotate {
|
if do_scale || do_rotate {
|
||||||
if do_scale {
|
if do_scale {
|
||||||
|
|||||||
Reference in New Issue
Block a user