Skip to content

Commit

Permalink
lint: fix clippy lint for utils::wait_for_future
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-J-Ward committed May 7, 2024
1 parent d691014 commit cd8f0e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ pub(crate) fn get_tokio_runtime(py: Python) -> PyRef<TokioRuntime> {
}

/// Utility to collect rust futures with GIL released
pub fn wait_for_future<F: Future>(py: Python, f: F) -> F::Output
pub fn wait_for_future<F>(py: Python, f: F) -> F::Output
where
F: Send,
F: Future + Send,
F::Output: Send,
{
let runtime: &Runtime = &get_tokio_runtime(py).0;
Expand Down

0 comments on commit cd8f0e0

Please sign in to comment.