mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-07-24 20:56:38 +00:00
![]() Fixes the clippy lint: ``` warning: in a `match` scrutinee, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let` --> src/bin/proxmox-backup-proxy.rs:874:58 | 874 | let stats = match tokio::task::spawn_blocking(|| { | __________________________________________________________^ 875 | | let hoststats = collect_host_stats_sync(); 876 | | let (hostdisk, datastores) = collect_disk_stats_sync(); 877 | | Arc::new((hoststats, hostdisk, datastores)) 878 | | }) | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions = note: `#[warn(clippy::blocks_in_conditions)]` on by default ``` Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com> |
||
---|---|---|
.. | ||
acme | ||
api2 | ||
backup | ||
bin | ||
config | ||
server | ||
tape | ||
tools | ||
auth_helpers.rs | ||
auth.rs | ||
client_helpers.rs | ||
lib.rs | ||
rrd_cache.rs | ||
traffic_control_cache.rs |