From c215dfa55dff4b1219adabfe61cb7f7463aa4b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 10 Apr 2020 11:59:51 +0200 Subject: [PATCH] crypto: Don't manually implement Send, those are now in olm-rs. --- src/crypto/olm.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/crypto/olm.rs b/src/crypto/olm.rs index cc538558..9b4264e0 100644 --- a/src/crypto/olm.rs +++ b/src/crypto/olm.rs @@ -46,14 +46,6 @@ impl fmt::Debug for Account { } } -/// Marking this as Send is safe because nothing will modify the pointer under -/// us from the C side. Sync on the other hand is unsafe since libolm doesn't do -/// any synchronization. We're wrapping the whole Olm machine inside a Mutex to -/// get Sync for it -unsafe impl Send for Account {} -unsafe impl Send for Session {} -unsafe impl Send for InboundGroupSession {} - impl Account { /// Create a new account. pub fn new() -> Self {