]> git.proxmox.com Git - proxmox-backup.git/commit - pbs-datastore/src/datastore.rs
gc: mark_used_chunks: reduce implementation noise
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 2 Nov 2020 19:50:24 +0000 (20:50 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 2 Nov 2020 20:08:38 +0000 (21:08 +0100)
commit788d82d9b7d0d534dfb30c8e4f97d1794cb3d07f
treeb8a1fab0bc98abe3971bf140a454e9619c169baf
parent2f0b92352d3e1807c1f6e91d78f68887a8f52459
gc: mark_used_chunks: reduce implementation noise

try do reduce some unecessary lines, make match arms more precise so
one can faster see what's actually happening.

Also, avoid
> return Err(format_err!(...))
stuff, just use bail!()

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/backup/datastore.rs