From f76cb1d123017defe709983af60ba1bac1ff81fd Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Sat, 5 Jun 2021 14:55:01 +0200 Subject: [PATCH] the the --- matrix_sdk_crypto/src/file_encryption/attachments.rs | 2 +- matrix_sdk_crypto/src/olm/mod.rs | 2 +- matrix_sdk_crypto/src/store/caches.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/matrix_sdk_crypto/src/file_encryption/attachments.rs b/matrix_sdk_crypto/src/file_encryption/attachments.rs index 70354f1f..d20392c8 100644 --- a/matrix_sdk_crypto/src/file_encryption/attachments.rs +++ b/matrix_sdk_crypto/src/file_encryption/attachments.rs @@ -197,7 +197,7 @@ impl<'a, R: Read + 'a> AttachmentEncryptor<'a, R> { let mut iv = Zeroizing::new([0u8; IV_SIZE]); getrandom(&mut *key).expect("Can't generate randomness"); - // Only populate the the first 8 bits with randomness, the rest is 0 + // Only populate the first 8 bits with randomness, the rest is 0 // initialized. getrandom(&mut iv[0..8]).expect("Can't generate randomness"); diff --git a/matrix_sdk_crypto/src/olm/mod.rs b/matrix_sdk_crypto/src/olm/mod.rs index 42ba3ef2..51f81fd3 100644 --- a/matrix_sdk_crypto/src/olm/mod.rs +++ b/matrix_sdk_crypto/src/olm/mod.rs @@ -53,7 +53,7 @@ where let now = Instant::now(); let instant = now .checked_sub(duration) - .ok_or_else(|| serde::de::Error::custom("Can't subtract the the current instant"))?; + .ok_or_else(|| serde::de::Error::custom("Can't subtract the current instant"))?; Ok(instant) } diff --git a/matrix_sdk_crypto/src/store/caches.rs b/matrix_sdk_crypto/src/store/caches.rs index a8f2e2c4..0fba1cfa 100644 --- a/matrix_sdk_crypto/src/store/caches.rs +++ b/matrix_sdk_crypto/src/store/caches.rs @@ -44,7 +44,7 @@ impl SessionStore { /// Add a session to the store. /// - /// Returns true if the the session was added, false if the session was + /// Returns true if the session was added, false if the session was /// already in the store. pub async fn add(&self, session: Session) -> bool { let sessions_lock = self @@ -89,7 +89,7 @@ impl GroupSessionStore { /// Add an inbound group session to the store. /// - /// Returns true if the the session was added, false if the session was + /// Returns true if the session was added, false if the session was /// already in the store. pub fn add(&self, session: InboundGroupSession) -> bool { self.entries