Fix sorting of message enum variants

This commit is contained in:
Keavon Chambers
2022-01-16 13:21:05 -08:00
parent b17432b1c4
commit 3038d72226
25 changed files with 254 additions and 111 deletions
+11 -2
View File
@@ -19,9 +19,18 @@ pub struct Navigate {
#[impl_message(Message, ToolMessage, Navigate)]
#[derive(PartialEq, Clone, Debug, Hash, Serialize, Deserialize)]
pub enum NavigateMessage {
// Standard messages
#[remain::unsorted]
Abort,
ClickZoom { zoom_in: bool },
MouseMove { snap_angle: Key, snap_zoom: Key },
// Tool-specific messages
ClickZoom {
zoom_in: bool,
},
MouseMove {
snap_angle: Key,
snap_zoom: Key,
},
RotateCanvasBegin,
TransformCanvasEnd,
TranslateCanvasBegin,