From c85e892eb42618dedc1e42f0b737f7823adc97d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 16 Feb 2021 11:48:22 +0200 Subject: [PATCH] glib: Correctly mark future returned by ThreadPool::push_future() as Send+Sync+'static --- glib/src/thread_pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/src/thread_pool.rs b/glib/src/thread_pool.rs index a8839d7d72aa..2d2bba1d9f65 100644 --- a/glib/src/thread_pool.rs +++ b/glib/src/thread_pool.rs @@ -76,7 +76,7 @@ impl ThreadPool { pub fn push_future T + Send + 'static>( &self, func: F, - ) -> Result, crate::Error> { + ) -> Result + Send + Sync + 'static, crate::Error> { let (sender, receiver) = oneshot::channel(); self.push(move || {