Skip to content

Commit

Permalink
Removed unnecessary lifetime on create_future
Browse files Browse the repository at this point in the history
Andrew J Westlake committed Jul 2, 2021
1 parent bc0f5e8 commit 8a7aec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -157,7 +157,7 @@ fn ensure_future<'p>(py: Python<'p>, awaitable: &'p PyAny) -> PyResult<&'p PyAny
.call1((awaitable,))
}

fn create_future<'p>(event_loop: &'p PyAny) -> PyResult<&'p PyAny> {
fn create_future(event_loop: &PyAny) -> PyResult<&PyAny> {
event_loop.call_method0("create_future")
}

0 comments on commit 8a7aec8

Please sign in to comment.