Fix sorting of message enum variants

This commit is contained in:
Keavon Chambers
2022-01-16 13:59:55 -08:00
parent 1a4ab0733b
commit 841f34e797
25 changed files with 254 additions and 111 deletions
+8 -1
View File
@@ -24,10 +24,17 @@ pub struct Shape {
#[impl_message(Message, ToolMessage, Shape)]
#[derive(PartialEq, Clone, Debug, Hash, Serialize, Deserialize)]
pub enum ShapeMessage {
// Standard messages
#[remain::unsorted]
Abort,
// Tool-specific messages
DragStart,
DragStop,
Resize { center: Key, lock_ratio: Key },
Resize {
center: Key,
lock_ratio: Key,
},
}
impl<'a> MessageHandler<ToolMessage, ToolActionHandlerData<'a>> for Shape {