crypto: Fix a clippy warning.

master
Damir Jelić 2020-08-20 10:49:14 +02:00
parent c3eb4d8106
commit b97e3d7bae
1 changed files with 1 additions and 1 deletions

View File

@ -1092,7 +1092,7 @@ impl OlmMachine {
messages messages
.entry(device.user_id().clone()) .entry(device.user_id().clone())
.or_insert(BTreeMap::new()) .or_insert_with(BTreeMap::new)
.insert( .insert(
DeviceIdOrAllDevices::DeviceId(device.device_id().into()), DeviceIdOrAllDevices::DeviceId(device.device_id().into()),
serde_json::value::to_raw_value(&encrypted)?, serde_json::value::to_raw_value(&encrypted)?,