We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf20cad commit b4efc44Copy full SHA for b4efc44
libraries/raw-rs/src/tiff/values.rs
@@ -69,15 +69,11 @@ impl Transform {
69
}
70
71
pub fn will_swap_coordinates(&self) -> bool {
72
+ use Transform as Tr;
73
+
74
match *self {
- Transform::Horizontal => false,
- 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,
+ Tr::Horizontal | Tr::MirrorHorizontal | Tr::Rotate180 | Tr::MirrorVertical => false,
+ Tr::MirrorHorizontalRotate270 | Tr::Rotate90 | Tr::MirrorHorizontalRotate90 | Tr::Rotate270 => true,
81
82
83
0 commit comments