Skip to content

Commit fd2f00a

Browse files
committed
Fix ordering of attributes in ws macros
1 parent 2771884 commit fd2f00a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/websocket/types/room/room_object_macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ macro_rules! with_base_fields_and_update_struct {
591591
}
592592
) => (
593593
with_update_struct! {
594-
$( #[$struct_attr] )*
595594
#[derive(serde::Deserialize)]
595+
$( #[$struct_attr] )*
596596
pub struct $name {
597597
/// Unique 'id' identifier for all game objects on a server.
598598
#[serde(rename = "_id")]
@@ -612,8 +612,8 @@ macro_rules! with_base_fields_and_update_struct {
612612
)*
613613
}
614614

615-
$( #[$update_struct_attr] )*
616615
#[derive(serde::Deserialize)]
616+
$( #[$update_struct_attr] )*
617617
$( ($update_extra) )*
618618
pub struct $update_name {
619619
#[serde(rename = "_id")]

0 commit comments

Comments
 (0)