From b97e3d7bae0ab2007b2881cf37bca4849b2d162a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 20 Aug 2020 10:49:14 +0200 Subject: [PATCH] crypto: Fix a clippy warning. --- matrix_sdk_crypto/src/machine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_sdk_crypto/src/machine.rs b/matrix_sdk_crypto/src/machine.rs index 4ffde40f..fb9e87f0 100644 --- a/matrix_sdk_crypto/src/machine.rs +++ b/matrix_sdk_crypto/src/machine.rs @@ -1092,7 +1092,7 @@ impl OlmMachine { messages .entry(device.user_id().clone()) - .or_insert(BTreeMap::new()) + .or_insert_with(BTreeMap::new) .insert( DeviceIdOrAllDevices::DeviceId(device.device_id().into()), serde_json::value::to_raw_value(&encrypted)?,