From 1e3f93ca22bd7a28cafb30ccba921583909eff5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 10 Apr 2020 11:43:03 +0200 Subject: [PATCH] crypto: Remove an unused enumerate. --- src/crypto/machine.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 {