From 893a5109ce3ad916d82b844ededa2052c62b0fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 12 Apr 2021 19:10:26 +0200 Subject: [PATCH] crypto: Remove some unneeded parenthesis --- matrix_sdk_crypto/src/olm/account.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_sdk_crypto/src/olm/account.rs b/matrix_sdk_crypto/src/olm/account.rs index cf76c44d..0e9717f1 100644 --- a/matrix_sdk_crypto/src/olm/account.rs +++ b/matrix_sdk_crypto/src/olm/account.rs @@ -594,7 +594,7 @@ impl ReadOnlyAccount { return Err(()); } - let key_count = (max_on_server) - count; + let key_count = max_on_server - count; let key_count: usize = key_count.try_into().unwrap_or(max_keys); self.generate_one_time_keys_helper(key_count).await;