From b2337437d70b3db7a56211a43aa1632306711b2d Mon Sep 17 00:00:00 2001 From: Cheong Lau <234708519+Cheong-Lau@users.noreply.github.com> Date: Sun, 12 Oct 2025 12:53:14 +1000 Subject: [PATCH] fix(mpris2): regression in 2024 edition migration Rust 2024 edition changed the lifetime capture rules, which broke `Enumerator::receive_changes()`. Adding the `use<>` bound makes sure that the lifetime isn't captured, like it was in the 2021 edition. fixes: c31a46961a0bf1fa4a7bd77bb74716691c278348 --- mpris2/src/enumerator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpris2/src/enumerator.rs b/mpris2/src/enumerator.rs index 2efaefb..4864dea 100644 --- a/mpris2/src/enumerator.rs +++ b/mpris2/src/enumerator.rs @@ -33,7 +33,7 @@ impl Enumerator { /// Returns a stream that is signalled when an mpris client is added or removed pub async fn receive_changes( &self, - ) -> zbus::Result> + Unpin> { + ) -> zbus::Result> + Unpin + use<>> { let stream = self.proxy.receive_name_owner_changed().await?; Ok(stream .filter_map(|signal| {