Normalize formatting of empty curly braces
This commit is contained in:
parent
675efbc5f1
commit
8ccf0f128b
@ -156,6 +156,6 @@ mod query_fields {
|
|||||||
pub server: Option<&'a str>,
|
pub server: Option<&'a str>,
|
||||||
}
|
}
|
||||||
|
|
||||||
response: { }
|
response: {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ ruma_api! {
|
|||||||
pub fields: Vec<(String, String)>,
|
pub fields: Vec<(String, String)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
response: { }
|
response: {}
|
||||||
}
|
}
|
||||||
|
|
||||||
ruma_api! {
|
ruma_api! {
|
||||||
@ -33,7 +33,7 @@ ruma_api! {
|
|||||||
pub fields: Vec<(String, String)>,
|
pub fields: Vec<(String, String)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
response: { }
|
response: {}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
@ -238,7 +238,7 @@ pub fn expand_basic_event_content(
|
|||||||
Ok(quote! {
|
Ok(quote! {
|
||||||
#event_content_impl
|
#event_content_impl
|
||||||
|
|
||||||
impl #ruma_events::BasicEventContent for #ident { }
|
impl #ruma_events::BasicEventContent for #ident {}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -253,7 +253,7 @@ pub fn expand_ephemeral_room_event_content(
|
|||||||
Ok(quote! {
|
Ok(quote! {
|
||||||
#event_content_impl
|
#event_content_impl
|
||||||
|
|
||||||
impl #ruma_events::EphemeralRoomEventContent for #ident { }
|
impl #ruma_events::EphemeralRoomEventContent for #ident {}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,7 +268,7 @@ pub fn expand_room_event_content(
|
|||||||
Ok(quote! {
|
Ok(quote! {
|
||||||
#event_content_impl
|
#event_content_impl
|
||||||
|
|
||||||
impl #ruma_events::RoomEventContent for #ident { }
|
impl #ruma_events::RoomEventContent for #ident {}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -283,7 +283,7 @@ pub fn expand_message_event_content(
|
|||||||
let redacted_marker_trait = if needs_redacted_from_input(input) {
|
let redacted_marker_trait = if needs_redacted_from_input(input) {
|
||||||
let ident = format_ident!("Redacted{}", &ident);
|
let ident = format_ident!("Redacted{}", &ident);
|
||||||
quote! {
|
quote! {
|
||||||
impl #ruma_events::RedactedMessageEventContent for #ident { }
|
impl #ruma_events::RedactedMessageEventContent for #ident {}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
TokenStream::new()
|
TokenStream::new()
|
||||||
@ -292,7 +292,7 @@ pub fn expand_message_event_content(
|
|||||||
Ok(quote! {
|
Ok(quote! {
|
||||||
#room_ev_content
|
#room_ev_content
|
||||||
|
|
||||||
impl #ruma_events::MessageEventContent for #ident { }
|
impl #ruma_events::MessageEventContent for #ident {}
|
||||||
|
|
||||||
#redacted_marker_trait
|
#redacted_marker_trait
|
||||||
})
|
})
|
||||||
@ -309,7 +309,7 @@ pub fn expand_state_event_content(
|
|||||||
let redacted_marker_trait = if needs_redacted_from_input(input) {
|
let redacted_marker_trait = if needs_redacted_from_input(input) {
|
||||||
let ident = format_ident!("Redacted{}", input.ident);
|
let ident = format_ident!("Redacted{}", input.ident);
|
||||||
quote! {
|
quote! {
|
||||||
impl #ruma_events::RedactedStateEventContent for #ident { }
|
impl #ruma_events::RedactedStateEventContent for #ident {}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
TokenStream::new()
|
TokenStream::new()
|
||||||
@ -318,7 +318,7 @@ pub fn expand_state_event_content(
|
|||||||
Ok(quote! {
|
Ok(quote! {
|
||||||
#room_ev_content
|
#room_ev_content
|
||||||
|
|
||||||
impl #ruma_events::StateEventContent for #ident { }
|
impl #ruma_events::StateEventContent for #ident {}
|
||||||
|
|
||||||
#redacted_marker_trait
|
#redacted_marker_trait
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user