Skip to content

Commit d85ac62

Browse files
authored
Fix latest clippy errors (#53)
1 parent 74cd232 commit d85ac62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ fn ensure_future<'p>(py: Python<'p>, awaitable: &Bound<'p, PyAny>) -> PyResult<B
414414
.call1((awaitable,))
415415
}
416416

417-
fn create_future(event_loop: Bound<PyAny>) -> PyResult<Bound<'_, PyAny>> {
417+
fn create_future(event_loop: Bound<'_, PyAny>) -> PyResult<Bound<'_, PyAny>> {
418418
event_loop.call_method0("create_future")
419419
}
420420

@@ -437,7 +437,7 @@ fn close(event_loop: Bound<PyAny>) -> PyResult<()> {
437437
Ok(())
438438
}
439439

440-
fn asyncio(py: Python) -> PyResult<&Bound<PyAny>> {
440+
fn asyncio(py: Python<'_>) -> PyResult<&Bound<'_, PyAny>> {
441441
ASYNCIO
442442
.get_or_try_init(|| Ok(py.import("asyncio")?.into()))
443443
.map(|asyncio| asyncio.bind(py))
@@ -459,7 +459,7 @@ pub fn get_running_loop(py: Python) -> PyResult<Bound<PyAny>> {
459459
.call0()
460460
}
461461

462-
fn contextvars(py: Python) -> PyResult<&Bound<PyAny>> {
462+
fn contextvars(py: Python<'_>) -> PyResult<&Bound<'_, PyAny>> {
463463
Ok(CONTEXTVARS
464464
.get_or_try_init(|| py.import("contextvars").map(|m| m.into()))?
465465
.bind(py))

0 commit comments

Comments
 (0)