diff options
author | Alexander Batischev <eual.jp@gmail.com> | 2021-04-26 13:41:58 +0300 |
---|---|---|
committer | Alexander Batischev <eual.jp@gmail.com> | 2021-04-26 22:52:02 +0300 |
commit | 4ae0960619537234d5591b40d05f91b131330618 (patch) | |
tree | 314e48f95e781e0e3b65dab7467e2fed4afafa47 /src/cmd | |
parent | 7176a544757eacc2823f1c0f014861ad2525e6da (diff) | |
download | obnam2-4ae0960619537234d5591b40d05f91b131330618.tar.gz |
Port chunkids() to the iterator API
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/restore.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/restore.rs b/src/cmd/restore.rs index 91045f1..4de0830 100644 --- a/src/cmd/restore.rs +++ b/src/cmd/restore.rs @@ -172,7 +172,8 @@ fn restore_regular( std::fs::create_dir_all(parent)?; { let mut file = std::fs::File::create(path)?; - for chunkid in gen.chunkids(fileid)? { + for chunkid in gen.chunkids(fileid)?.iter()? { + let chunkid = chunkid?; let chunk = client.fetch_chunk(&chunkid)?; file.write_all(chunk.data())?; } |