Remove trait derives other than Debug from Init structs

This commit is contained in:
Jonas Platte 2021-06-25 12:27:14 +02:00
parent 2577225ba5
commit 7a61c9cd8c
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
4 changed files with 5 additions and 5 deletions

View File

@ -77,7 +77,7 @@ pub struct KeyBackupData {
/// ///
/// This struct will not be updated even if additional fields are added to `SessionData` in a /// This struct will not be updated even if additional fields are added to `SessionData` in a
/// new (non-breaking) release of the Matrix specification. /// new (non-breaking) release of the Matrix specification.
#[derive(Clone, Debug, Serialize, Deserialize)] #[derive(Debug)]
#[allow(clippy::exhaustive_structs)] #[allow(clippy::exhaustive_structs)]
pub struct KeyBackupDataInit { pub struct KeyBackupDataInit {
/// The index of the first message in the session that the key can decrypt. /// The index of the first message in the session that the key can decrypt.
@ -122,7 +122,7 @@ pub struct SessionData {
/// ///
/// This struct will not be updated even if additional fields are added to `SessionData` in a /// This struct will not be updated even if additional fields are added to `SessionData` in a
/// new (non-breaking) release of the Matrix specification. /// new (non-breaking) release of the Matrix specification.
#[derive(Clone, Debug, Serialize, Deserialize)] #[derive(Debug)]
#[allow(clippy::exhaustive_structs)] #[allow(clippy::exhaustive_structs)]
pub struct SessionDataInit { pub struct SessionDataInit {
/// Unpadded base64-encoded public half of the ephemeral key. /// Unpadded base64-encoded public half of the ephemeral key.

View File

@ -124,7 +124,7 @@ pub struct SasV1Content {
} }
/// Mandatory initial set of fields for creating an accept `SasV1Content`. /// Mandatory initial set of fields for creating an accept `SasV1Content`.
#[derive(Clone, Debug, Deserialize)] #[derive(Debug)]
#[allow(clippy::exhaustive_structs)] #[allow(clippy::exhaustive_structs)]
pub struct SasV1ContentInit { pub struct SasV1ContentInit {
/// The key agreement protocol the device is choosing to use, out of the /// The key agreement protocol the device is choosing to use, out of the

View File

@ -158,7 +158,7 @@ pub struct SasV1Content {
} }
/// Mandatory initial set of fields for creating an `SasV1Content`. /// Mandatory initial set of fields for creating an `SasV1Content`.
#[derive(Clone, Debug, Deserialize)] #[derive(Debug)]
#[allow(clippy::exhaustive_structs)] #[allow(clippy::exhaustive_structs)]
pub struct SasV1ContentInit { pub struct SasV1ContentInit {
/// The key agreement protocols the sending device understands. /// The key agreement protocols the sending device understands.

View File

@ -210,7 +210,7 @@ pub struct MegolmV1AesSha2Content {
/// ///
/// This struct will not be updated even if additional fields are added to `MegolmV1AesSha2Content` /// This struct will not be updated even if additional fields are added to `MegolmV1AesSha2Content`
/// in a new (non-breaking) release of the Matrix specification. /// in a new (non-breaking) release of the Matrix specification.
#[derive(Clone, Debug)] #[derive(Debug)]
#[allow(clippy::exhaustive_structs)] #[allow(clippy::exhaustive_structs)]
pub struct MegolmV1AesSha2ContentInit { pub struct MegolmV1AesSha2ContentInit {
/// The encrypted content of the event. /// The encrypted content of the event.