From 3f2755b67c4ab0f9b5f1e9b02565beccb3fb68d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 29 Nov 2021 15:23:44 +0100 Subject: [PATCH] rust: Bump the rust-sdk version --- rust-sdk/Cargo.toml | 4 ++-- rust-sdk/src/device.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust-sdk/Cargo.toml b/rust-sdk/Cargo.toml index 3d256ec661..a8ceb9cd7f 100644 --- a/rust-sdk/Cargo.toml +++ b/rust-sdk/Cargo.toml @@ -29,11 +29,11 @@ features = ["lax_deserialize"] [dependencies.matrix-sdk-common] git = "https://github.com/matrix-org/matrix-rust-sdk/" -rev = "7b6132b71e499224ed25bdc571b2a54d076551d6" +rev = "a628e84b63f6b761af383655e00f544ef6a09082" [dependencies.matrix-sdk-crypto] git = "https://github.com/matrix-org/matrix-rust-sdk/" -rev = "7b6132b71e499224ed25bdc571b2a54d076551d6" +rev = "a628e84b63f6b761af383655e00f544ef6a09082" features = ["sled_cryptostore", "qrcode", "backups_v1"] [dependencies.tokio] diff --git a/rust-sdk/src/device.rs b/rust-sdk/src/device.rs index 5aa36bd5bb..ecd571c118 100644 --- a/rust-sdk/src/device.rs +++ b/rust-sdk/src/device.rs @@ -37,7 +37,7 @@ impl From for Device { .map(|(k, v)| (k.to_string(), v.to_string())) .collect(), algorithms: d.algorithms().iter().map(|a| a.to_string()).collect(), - display_name: d.display_name().clone(), + display_name: d.display_name().map(|d| d.to_owned()), is_blocked: d.is_blacklisted(), locally_trusted: d.is_locally_trusted(), cross_signing_trusted: d.is_cross_signing_trusted(),