diff --git a/crates/ruma-common/src/events/room/encrypted.rs b/crates/ruma-common/src/events/room/encrypted.rs index 3c58687a..666e7ba4 100644 --- a/crates/ruma-common/src/events/room/encrypted.rs +++ b/crates/ruma-common/src/events/room/encrypted.rs @@ -305,6 +305,7 @@ impl From for MegolmV1AesSha2Content { /// Creates a new `MegolmV1AesSha2Content` from the given init struct. fn from(init: MegolmV1AesSha2ContentInit) -> Self { let MegolmV1AesSha2ContentInit { ciphertext, sender_key, device_id, session_id } = init; + #[allow(deprecated)] Self { ciphertext, sender_key, device_id, session_id } } } diff --git a/crates/ruma-common/src/events/room_key_request.rs b/crates/ruma-common/src/events/room_key_request.rs index b3ab9581..63c301df 100644 --- a/crates/ruma-common/src/events/room_key_request.rs +++ b/crates/ruma-common/src/events/room_key_request.rs @@ -100,6 +100,7 @@ impl RequestedKeyInfo { sender_key: String, session_id: String, ) -> Self { + #[allow(deprecated)] Self { algorithm, room_id, sender_key, session_id } } }