diff --git a/crates/ruma-client-api/src/r0/backup/add_backup_keys.rs b/crates/ruma-client-api/src/r0/backup/add_backup_keys.rs index ce9569f5..cc1758a7 100644 --- a/crates/ruma-client-api/src/r0/backup/add_backup_keys.rs +++ b/crates/ruma-client-api/src/r0/backup/add_backup_keys.rs @@ -5,7 +5,6 @@ use std::collections::BTreeMap; use js_int::UInt; use ruma_api::ruma_api; use ruma_identifiers::RoomId; -use ruma_serde::Raw; use super::RoomKeyBackup; @@ -27,7 +26,7 @@ ruma_api! { pub version: &'a str, /// A map from room IDs to session IDs to key data. - pub rooms: BTreeMap, Raw>, + pub rooms: BTreeMap, RoomKeyBackup>, } response: { @@ -46,7 +45,7 @@ ruma_api! { impl<'a> Request<'a> { /// Creates a new `Request` with the given version and room key backups. - pub fn new(version: &'a str, rooms: BTreeMap, Raw>) -> Self { + pub fn new(version: &'a str, rooms: BTreeMap, RoomKeyBackup>) -> Self { Self { version, rooms } } } diff --git a/crates/ruma-client-api/src/r0/backup/get_backup_keys.rs b/crates/ruma-client-api/src/r0/backup/get_backup_keys.rs index d3bad070..ec02a48a 100644 --- a/crates/ruma-client-api/src/r0/backup/get_backup_keys.rs +++ b/crates/ruma-client-api/src/r0/backup/get_backup_keys.rs @@ -4,7 +4,6 @@ use std::collections::BTreeMap; use ruma_api::ruma_api; use ruma_identifiers::RoomId; -use ruma_serde::Raw; use super::RoomKeyBackup; @@ -28,7 +27,7 @@ ruma_api! { response: { /// A map from room IDs to session IDs to key data. - pub rooms: BTreeMap, Raw>, + pub rooms: BTreeMap, RoomKeyBackup>, } error: crate::Error @@ -43,7 +42,7 @@ impl<'a> Request<'a> { impl Response { /// Creates a new `Response` with the given room key backups. - pub fn new(rooms: BTreeMap, Raw>) -> Self { + pub fn new(rooms: BTreeMap, RoomKeyBackup>) -> Self { Self { rooms } } }