Skip to content

Commit 07e7980

Browse files
Fix Rust’s confusing lifetime lint (#19118)
Co-authored-by: Andrew Morgan <[email protected]>
1 parent 3595ff9 commit 07e7980

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/19118.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a lint error related to lifetimes in Rust 1.90.

rust/src/http_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fn get_runtime<'a>(reactor: &Bound<'a, PyAny>) -> PyResult<PyRef<'a, PyTokioRunt
137137
static DEFER: OnceCell<PyObject> = OnceCell::new();
138138

139139
/// Access to the `twisted.internet.defer` module.
140-
fn defer(py: Python<'_>) -> PyResult<&Bound<PyAny>> {
140+
fn defer(py: Python<'_>) -> PyResult<&Bound<'_, PyAny>> {
141141
Ok(DEFER
142142
.get_or_try_init(|| py.import("twisted.internet.defer").map(Into::into))?
143143
.bind(py))

0 commit comments

Comments
 (0)