Fix missing serde(default) attributes

This commit is contained in:
Jonas Platte 2020-09-21 23:06:20 +02:00
parent 22ec1710b5
commit 7aec43c323
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ pub struct DeviceKeys {
/// Additional data added to the device key information by intermediate servers, and
/// not covered by the signatures.
#[serde(skip_serializing_if = "UnsignedDeviceInfo::is_empty")]
#[serde(default, skip_serializing_if = "UnsignedDeviceInfo::is_empty")]
pub unsigned: UnsignedDeviceInfo,
}

View File

@ -39,7 +39,7 @@ ruma_api! {
/// List of ephemeral messages.
///
/// Must not be more than 100 items.
#[serde(skip_serializing_if = "<[_]>::is_empty")]
#[serde(default, skip_serializing_if = "<[_]>::is_empty")]
pub edus: &'a [Edu],
}