crypto: Remove an unused enumerate.

master
Damir Jelić 2020-04-10 11:43:03 +02:00
parent 86617b42e2
commit 1e3f93ca22
1 changed files with 1 additions and 4 deletions

View File

@ -992,10 +992,7 @@ impl OlmMachine {
let mut message_vec = Vec::new();
for (i, user_map_chunk) in user_map
.chunks(OlmMachine::MAX_TO_DEVICE_MESSAGES)
.enumerate()
{
for user_map_chunk in user_map.chunks(OlmMachine::MAX_TO_DEVICE_MESSAGES) {
let mut messages = HashMap::new();
for (session, device) in user_map_chunk {