]> git.proxmox.com Git - proxmox-backup.git/commit - src/backup/chunk_store.rs
backup/chunk_store: rework chunk iterator
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 4 Jul 2019 08:51:52 +0000 (10:51 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 4 Jul 2019 08:55:17 +0000 (10:55 +0200)
commita3f3e91da27d7b6cf0afaacc3dd12247ee268778
tree929f6fe23889773ad59a09de2a37303ebec83712
parent99168f43e6686d356a4d0635a095bbb0c9b46ea3
backup/chunk_store: rework chunk iterator

We can now use iter::from_fn() which makes for a much nicer
logic. The only thing better is going to be when we can use
generators with `yield`.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/backup/chunk_store.rs