diff --git a/src/crypto/machine.rs b/src/crypto/machine.rs index c00c4248..3fab333b 100644 --- a/src/crypto/machine.rs +++ b/src/crypto/machine.rs @@ -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 {