diff --git a/Cargo.toml b/Cargo.toml index c526acef..3dbe595f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,7 +62,7 @@ license = "AGPL-3" repository = "https://git.proxmox.com/?p=proxmox.git" homepage = "https://proxmox.com" exclude = [ "debian" ] -rust-version = "1.80" +rust-version = "1.82" [workspace.dependencies] # any features enabled here are enabled on all members using 'workspace = true'! diff --git a/proxmox-async/src/broadcast_future.rs b/proxmox-async/src/broadcast_future.rs index 838204d3..62982e13 100644 --- a/proxmox-async/src/broadcast_future.rs +++ b/proxmox-async/src/broadcast_future.rs @@ -43,7 +43,7 @@ impl BroadcastData { } } - pub fn listen(&mut self) -> impl Future> { + pub fn listen(&mut self) -> impl Future> + use { use futures::future::{ok, Either}; match &self.result { @@ -105,7 +105,7 @@ impl BroadcastFuture { fn spawn( inner: Arc>>, - ) -> impl Future> { + ) -> impl Future> + use { let mut data = inner.lock().unwrap(); if let Some(source) = data.future.take() { @@ -122,7 +122,7 @@ impl BroadcastFuture { } /// Register a listener - pub fn listen(&self) -> impl Future> { + pub fn listen(&self) -> impl Future> + use { let inner2 = self.inner.clone(); async move { Self::spawn(inner2).await } }