Skip to content

Commit 0ee77f2

Browse files
committed
Fix tests.
1 parent 78819d3 commit 0ee77f2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
//! let locals = pyo3_async_runtimes::TaskLocals::with_running_loop(py)?.copy_context(py)?;
9494
//!
9595
//! // Convert the async move { } block to a Python awaitable
96-
//! pyo3_async_runtimes::tokio::future_into_py_with_locals(py, locals.clone_ref(py), async move {
96+
//! pyo3_async_runtimes::tokio::future_into_py_with_locals(py, locals.clone_ref(), async move {
9797
//! let py_sleep = Python::attach(|py| {
9898
//! // Sometimes we need to call other async Python functions within
9999
//! // this future. In order for this to work, we need to track the
@@ -162,9 +162,9 @@
162162
//!
163163
//! pyo3_async_runtimes::tokio::future_into_py_with_locals(
164164
//! py,
165-
//! locals.clone_ref(py),
165+
//! locals.clone_ref(),
166166
//! // Store the current locals in task-local data
167-
//! pyo3_async_runtimes::tokio::scope(locals.clone_ref(py), async move {
167+
//! pyo3_async_runtimes::tokio::scope(locals.clone_ref(), async move {
168168
//! let py_sleep = Python::attach(|py| {
169169
//! pyo3_async_runtimes::into_future_with_locals(
170170
//! // Now we can get the current locals through task-local data
@@ -189,9 +189,9 @@
189189
//!
190190
//! pyo3_async_runtimes::tokio::future_into_py_with_locals(
191191
//! py,
192-
//! locals.clone_ref(py),
192+
//! locals.clone_ref(),
193193
//! // Store the current locals in task-local data
194-
//! pyo3_async_runtimes::tokio::scope(locals.clone_ref(py), async move {
194+
//! pyo3_async_runtimes::tokio::scope(locals.clone_ref(), async move {
195195
//! let py_sleep = Python::attach(|py| {
196196
//! pyo3_async_runtimes::into_future_with_locals(
197197
//! &pyo3_async_runtimes::tokio::get_current_locals(py)?,

0 commit comments

Comments
 (0)