From cd8f0e06f1d59c82c6045232394519c5a93d84cb Mon Sep 17 00:00:00 2001 From: Michael-J-Ward Date: Tue, 7 May 2024 13:14:21 -0500 Subject: [PATCH] lint: fix clippy lint for utils::wait_for_future --- src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index c5965bd2..62cf07d9 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -37,9 +37,9 @@ pub(crate) fn get_tokio_runtime(py: Python) -> PyRef { } /// Utility to collect rust futures with GIL released -pub fn wait_for_future(py: Python, f: F) -> F::Output +pub fn wait_for_future(py: Python, f: F) -> F::Output where - F: Send, + F: Future + Send, F::Output: Send, { let runtime: &Runtime = &get_tokio_runtime(py).0;