Skip to content

Commit b4efc44

Browse files
committed
Nit
1 parent cf20cad commit b4efc44

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

libraries/raw-rs/src/tiff/values.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,11 @@ impl Transform {
6969
}
7070

7171
pub fn will_swap_coordinates(&self) -> bool {
72+
use Transform as Tr;
73+
7274
match *self {
73-
Transform::Horizontal => false,
74-
Transform::MirrorHorizontal => false,
75-
Transform::Rotate180 => false,
76-
Transform::MirrorVertical => false,
77-
Transform::MirrorHorizontalRotate270 => true,
78-
Transform::Rotate90 => true,
79-
Transform::MirrorHorizontalRotate90 => true,
80-
Transform::Rotate270 => true,
75+
Tr::Horizontal | Tr::MirrorHorizontal | Tr::Rotate180 | Tr::MirrorVertical => false,
76+
Tr::MirrorHorizontalRotate270 | Tr::Rotate90 | Tr::MirrorHorizontalRotate90 | Tr::Rotate270 => true,
8177
}
8278
}
8379
}

0 commit comments

Comments
 (0)