Fix incorrect closing brackets
This commit is contained in:
Jeong, Heon 2024-04-11 14:07:56 -07:00 committed by David Hewitt
parent b8ec43e469
commit 68d19738e7
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ Export an async function that makes use of `async-std`:
use pyo3::{prelude::*, wrap_pyfunction};
#[pyfunction]
fn rust_sleep(py: Python<'_>) -> PyResult<&Bound<'_, PyAny>>> {
fn rust_sleep(py: Python<'_>) -> PyResult<&Bound<'_, PyAny>> {
pyo3_asyncio::async_std::future_into_py(py, async {
async_std::task::sleep(std::time::Duration::from_secs(1)).await;
Ok(Python::with_gil(|py| py.None()))