proxmox/proxmox-async/src
Maximiliano Sandoval 3db442fb8f async: accommodate to edition 2024 changes to RPIT
Prevents the following error:

```
error[E0597]: `inner` does not live long enough
   --> proxmox-async/src/broadcast_future.rs:109:24
    |
107 |         inner: Arc<Mutex<BroadCastFutureBinding<T>>>,
    |         ----- binding `inner` declared here
108 |     ) -> impl Future<Output = Result<T, Error>> {
109 |         let mut data = inner.lock().unwrap();
    |                        ^^^^^ borrowed value does not live long enough
...
121 |         data.broadcast.listen()
    |         ----------------------- argument requires that `inner` is borrowed for `'static`
122 |     }
    |     - `inner` dropped here while still borrowed

error[E0597]: `data` does not live long enough
   --> proxmox-async/src/broadcast_future.rs:121:9
    |
109 |         let mut data = inner.lock().unwrap();
    |             -------- binding `data` declared here
...
121 |         data.broadcast.listen()
    |         ^^^^-------------------
    |         |
    |         borrowed value does not live long enough
    |         argument requires that `data` is borrowed for `'static`
122 |     }
    |     - `data` dropped here while still borrowed
```

The use<...> pattern was introduced in rust 1.82.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2025-03-19 12:19:33 +01:00
..
blocking proxmox-async: add SenderWriter helper 2022-04-12 14:05:14 +02:00
io async, sys: replace deprecated io_err_other 2024-07-26 13:09:33 +02:00
net proxmox_async: move io::udp to net::udp 2022-02-02 12:54:39 +01:00
stream proxmox-async: rustfmt (again) 2022-02-08 14:52:42 +01:00
broadcast_future.rs async: accommodate to edition 2024 changes to RPIT 2025-03-19 12:19:33 +01:00
lib.rs tree-wide: enable doc_cfg and doc_auto_cfg for docs 2024-07-02 11:59:53 +02:00
runtime.rs mark extern C blocks as unsafe 2025-03-19 12:19:19 +01:00