Skip to content

Commit 542064f

Browse files
committed
Silence the linter
1 parent f04a788 commit 542064f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/asgi/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ impl Asgi {
241241
}
242242

243243
Ok(())
244-
}).map_err(HandlerError::PythonError)
244+
})
245+
.map_err(HandlerError::PythonError)
245246
}
246247
}
247248

@@ -343,9 +344,8 @@ impl Handler for Asgi {
343344
// the coroutine completes.
344345
Python::with_gil(|py| {
345346
pyo3_async_runtimes::tokio::run(py, async move {
346-
Python::with_gil(|py| {
347-
pyo3_async_runtimes::tokio::into_future(coroutine.into_bound(py))
348-
})?.await
347+
Python::with_gil(|py| pyo3_async_runtimes::tokio::into_future(coroutine.into_bound(py)))?
348+
.await
349349
})
350350
})?;
351351

0 commit comments

Comments
 (0)