Add missing commas

This commit is contained in:
Jonas Platte 2021-08-30 17:34:20 +02:00
parent 46c7e3f811
commit dc842f028f
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
15 changed files with 15 additions and 15 deletions

View File

@ -241,7 +241,7 @@ use
```rust
ruma_api! {
request: {
my_field: MyStruct<'a>
my_field: MyStruct<'a>,
}
// ...
}

View File

@ -227,7 +227,7 @@ impl Request {
const METADATA: #ruma_api::Metadata = self::METADATA;
fn try_from_http_request<T: ::std::convert::AsRef<[::std::primitive::u8]>>(
request: #http::Request<T>
request: #http::Request<T>,
) -> ::std::result::Result<Self, #ruma_api::error::FromHttpRequestError> {
if request.method() != #http::Method::#method {
return Err(#ruma_api::error::FromHttpRequestError::MethodMismatch {

View File

@ -49,7 +49,7 @@ ruma_api! {
feature = "compat",
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
)]
pub submit_url: Option<String>
pub submit_url: Option<String>,
}
error: crate::Error

View File

@ -52,7 +52,7 @@ ruma_api! {
feature = "compat",
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
)]
pub submit_url: Option<String>
pub submit_url: Option<String>,
}
error: crate::Error

View File

@ -49,7 +49,7 @@ ruma_api! {
feature = "compat",
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
)]
pub submit_url: Option<String>
pub submit_url: Option<String>,
}
error: crate::Error

View File

@ -45,7 +45,7 @@ ruma_api! {
feature = "compat",
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
)]
pub submit_url: Option<String>
pub submit_url: Option<String>,
}
error: crate::Error

View File

@ -49,7 +49,7 @@ ruma_api! {
feature = "compat",
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
)]
pub submit_url: Option<String>
pub submit_url: Option<String>,
}
error: crate::Error

View File

@ -52,7 +52,7 @@ ruma_api! {
feature = "compat",
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
)]
pub submit_url: Option<String>
pub submit_url: Option<String>,
}
error: crate::Error

View File

@ -31,7 +31,7 @@ ruma_api! {
response: {
/// For each key algorithm, the number of unclaimed one-time keys of that
/// type currently held on the server for this device.
pub one_time_key_counts: BTreeMap<DeviceKeyAlgorithm, UInt>
pub one_time_key_counts: BTreeMap<DeviceKeyAlgorithm, UInt>,
}
error: crate::Error

View File

@ -42,7 +42,7 @@ ruma_api! {
response: {
/// A list of member events.
pub chunk: Vec<Raw<MemberEvent>>
pub chunk: Vec<Raw<MemberEvent>>,
}
error: crate::Error

View File

@ -34,7 +34,7 @@ ruma_api! {
/// where the notification had the 'highlight' tweak set.
#[ruma_api(query)]
#[serde(skip_serializing_if = "Option::is_none")]
pub only: Option<&'a str>
pub only: Option<&'a str>,
}
response: {

View File

@ -31,7 +31,7 @@ ruma_api! {
response: {
/// The actions to perform for this rule.
pub actions: Vec<Action>
pub actions: Vec<Action>,
}
error: crate::Error

View File

@ -23,7 +23,7 @@ ruma_api! {
/// Experimental features supported by the server.
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub unstable_features: BTreeMap<String, bool>
pub unstable_features: BTreeMap<String, bool>,
}
error: crate::Error

View File

@ -39,7 +39,7 @@ ruma_api! {
#[derive(Default)]
response: {
/// The missing PDUs.
pub events: Vec<Raw<Pdu>>
pub events: Vec<Raw<Pdu>>,
}
}

View File

@ -22,7 +22,7 @@ ruma_api! {
/// The policies the server offers.
///
/// Mapped from arbitrary ID (unused in this version of the specification) to a Policy Object.
pub policies: BTreeMap<String, Policies>
pub policies: BTreeMap<String, Policies>,
}
}