]> git.proxmox.com Git - proxmox-backup.git/commit - src/traffic_control_cache.rs
api: use if-let pattern for error-only handling
authorMaximiliano Sandoval <m.sandoval@proxmox.com>
Wed, 14 Feb 2024 08:23:35 +0000 (09:23 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Mar 2024 16:17:12 +0000 (17:17 +0100)
commit6aff2de5d9ee70bf160ea6f4b254f400eee7fa25
tree44557534faee2740f3bdd9f8859257206c177db0
parent87b4b63e555f788dff3c90899b5175f9502a15eb
api: use if-let pattern for error-only handling

It is more readable than using match. We also inline variables in
eprintln!.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
pbs-client/src/pxar/dir_stack.rs
src/api2/access/user.rs
src/bin/proxmox-daily-update.rs
src/tape/pool_writer/new_chunks_iterator.rs
src/tools/parallel_handler.rs
src/traffic_control_cache.rs