mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +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 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 {
|
||||
|
||||
Reference in New Issue
Block a user