Skip to content

Commit c61ef22

Browse files
author
Andrew J Westlake
committed
Fixed crates.io badge
1 parent 8b1b493 commit c61ef22

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Actions Status](https://github.com/awestlake87/pyo3-asyncio/workflows/CI/badge.svg)](https://github.com/awestlake87/pyo3-asyncio/actions)
44
[![codecov](https://codecov.io/gh/awestlake87/pyo3-asyncio/branch/master/graph/badge.svg)](https://codecov.io/gh/awestlake87/pyo3-asyncio)
5-
[![crates.io](http://meritbadge.herokuapp.com/pyo3-asyncio)](https://crates.io/crates/pyo3-asyncio)
5+
[![crates.io](https://img.shields.io/crates/v/pyo3-asyncio)](https://crates.io/crates/pyo3-asyncio)
66
[![minimum rustc 1.46](https://img.shields.io/badge/rustc-1.46+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
77

88
[Rust](http://www.rust-lang.org/) bindings for [Python](https://www.python.org/)'s [Asyncio Library](https://docs.python.org/3/library/asyncio.html). This crate facilitates interactions between Rust Futures and Python Coroutines and manages the lifecycle of their corresponding event loops.

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ fn asyncio_get_event_loop(py: Python) -> PyResult<&PyAny> {
263263

264264
/// Get a reference to the Python Event Loop from Rust
265265
///
266-
/// Equivalent to `asyncio.get_running_loop()` in Python 3.7+
266+
/// Equivalent to `asyncio.get_running_loop()` in Python 3.7+.
267267
/// > For Python 3.6, this function falls back to `asyncio.get_event_loop()` which has slightly
268268
/// different behaviour. See the [`asyncio.get_event_loop`](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_event_loop)
269269
/// docs to better understand the differences.
270270
pub fn get_running_loop(py: Python) -> PyResult<&PyAny> {
271-
// Ideally should call get_running_loop, but calls get_event_loop for compatibility between
272-
// versions.
271+
// Ideally should call get_running_loop, but calls get_event_loop for compatibility when
272+
// get_running_loop is not available.
273273
GET_RUNNING_LOOP
274274
.get_or_try_init(|| -> PyResult<PyObject> {
275275
let asyncio = asyncio(py)?;

0 commit comments

Comments
 (0)