summaryrefslogtreecommitdiff
path: root/src/benchmark.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-18 15:03:15 +0000
committerLars Wirzenius <liw@liw.fi>2021-09-18 15:03:15 +0000
commit7f3f30b0e4b7713d0a6106babf662127ac457210 (patch)
tree9bb7ec9420c2bbd6e3fb9103ee298c445746d3d7 /src/benchmark.rs
parentd6728974b98a821b8d633197abd97cf2fc9357f5 (diff)
parent97b9327ac7f73b3a2629cd90da20d1655bf9478e (diff)
downloadobnam2-7f3f30b0e4b7713d0a6106babf662127ac457210.tar.gz
Merge branch 'checksum-type' into 'main'
refactor: define a Checksum type and use it where appropriate Closes #136 See merge request obnam/obnam!180
Diffstat (limited to 'src/benchmark.rs')
-rw-r--r--src/benchmark.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/benchmark.rs b/src/benchmark.rs
index 3c94f92..e5057ac 100644
--- a/src/benchmark.rs
+++ b/src/benchmark.rs
@@ -1,3 +1,4 @@
+use crate::checksummer::Checksum;
use crate::chunk::DataChunk;
use crate::chunkid::ChunkId;
use crate::chunkmeta::ChunkMeta;
@@ -15,7 +16,7 @@ impl ChunkGenerator {
}
impl Iterator for ChunkGenerator {
- type Item = (ChunkId, String, DataChunk);
+ type Item = (ChunkId, Checksum, DataChunk);
fn next(&mut self) -> Option<Self::Item> {
if self.next >= self.goal {