From 105961a78dd3ffe8402dbaaeb4483663376debb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 28 Mar 2022 16:38:27 +0200 Subject: [PATCH] chore(crypto): Change the expect message for device key serialization Co-authored-by: Benjamin Kampmann --- crates/matrix-sdk-crypto/src/olm/account.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk-crypto/src/olm/account.rs b/crates/matrix-sdk-crypto/src/olm/account.rs index ebe9eae51..31425bfd9 100644 --- a/crates/matrix-sdk-crypto/src/olm/account.rs +++ b/crates/matrix-sdk-crypto/src/olm/account.rs @@ -745,7 +745,7 @@ impl ReadOnlyAccount { // Create a copy of the device keys containing only fields that will // get signed. let json_device_keys = - serde_json::to_value(&device_keys).expect("Can't serialize device keys"); + serde_json::to_value(&device_keys).expect("device key is always safe to serialize"); device_keys .signatures