diff --git a/crates/ruma-client-api/src/r0/backup.rs b/crates/ruma-client-api/src/r0/backup.rs index 373f2330..13a72023 100644 --- a/crates/ruma-client-api/src/r0/backup.rs +++ b/crates/ruma-client-api/src/r0/backup.rs @@ -77,7 +77,7 @@ pub struct KeyBackupData { /// /// This struct will not be updated even if additional fields are added to `SessionData` in a /// new (non-breaking) release of the Matrix specification. -#[derive(Clone, Debug, Serialize, Deserialize)] +#[derive(Debug)] #[allow(clippy::exhaustive_structs)] pub struct KeyBackupDataInit { /// 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 /// new (non-breaking) release of the Matrix specification. -#[derive(Clone, Debug, Serialize, Deserialize)] +#[derive(Debug)] #[allow(clippy::exhaustive_structs)] pub struct SessionDataInit { /// Unpadded base64-encoded public half of the ephemeral key. diff --git a/crates/ruma-events/src/key/verification/accept.rs b/crates/ruma-events/src/key/verification/accept.rs index 26ba31ea..7eae9526 100644 --- a/crates/ruma-events/src/key/verification/accept.rs +++ b/crates/ruma-events/src/key/verification/accept.rs @@ -124,7 +124,7 @@ pub struct SasV1Content { } /// Mandatory initial set of fields for creating an accept `SasV1Content`. -#[derive(Clone, Debug, Deserialize)] +#[derive(Debug)] #[allow(clippy::exhaustive_structs)] pub struct SasV1ContentInit { /// The key agreement protocol the device is choosing to use, out of the diff --git a/crates/ruma-events/src/key/verification/start.rs b/crates/ruma-events/src/key/verification/start.rs index 4eb47dc7..061bc700 100644 --- a/crates/ruma-events/src/key/verification/start.rs +++ b/crates/ruma-events/src/key/verification/start.rs @@ -158,7 +158,7 @@ pub struct SasV1Content { } /// Mandatory initial set of fields for creating an `SasV1Content`. -#[derive(Clone, Debug, Deserialize)] +#[derive(Debug)] #[allow(clippy::exhaustive_structs)] pub struct SasV1ContentInit { /// The key agreement protocols the sending device understands. diff --git a/crates/ruma-events/src/room/encrypted.rs b/crates/ruma-events/src/room/encrypted.rs index d3858bb7..ced934d0 100644 --- a/crates/ruma-events/src/room/encrypted.rs +++ b/crates/ruma-events/src/room/encrypted.rs @@ -210,7 +210,7 @@ pub struct 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. -#[derive(Clone, Debug)] +#[derive(Debug)] #[allow(clippy::exhaustive_structs)] pub struct MegolmV1AesSha2ContentInit { /// The encrypted content of the event.