summaryrefslogtreecommitdiff
path: root/src/bin/benchmark-indexedstore.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-07-30 13:24:39 +0300
committerLars Wirzenius <liw@liw.fi>2021-07-30 13:30:18 +0300
commitd95a6470a4bcd9a28ae5603b863820921a05e969 (patch)
treeeca9853a840fe5027a51c010963929482269b0d3 /src/bin/benchmark-indexedstore.rs
parentcc3524fd60169a66c8a4e2178448bf5f6d07c99b (diff)
downloadobnam2-d95a6470a4bcd9a28ae5603b863820921a05e969.tar.gz
cleanup: fix things rustc/clipppy now complain about
Mostly https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow. Sponsored-by: author
Diffstat (limited to 'src/bin/benchmark-indexedstore.rs')
-rw-r--r--src/bin/benchmark-indexedstore.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/benchmark-indexedstore.rs b/src/bin/benchmark-indexedstore.rs
index 5cd3ff1..1479cb9 100644
--- a/src/bin/benchmark-indexedstore.rs
+++ b/src/bin/benchmark-indexedstore.rs
@@ -83,7 +83,7 @@ fn lookup(index: &mut IndexedStore, num: u32) -> anyhow::Result<()> {
loop {
let gen = ChunkGenerator::new(num);
for (_, _, chunk) in gen {
- index.find_by_sha256(&chunk.meta().sha256())?;
+ index.find_by_sha256(chunk.meta().sha256())?;
done += 1;
if done >= num {
return Ok(());