Skip to content

Commit c310093

Browse files
authored
Merge pull request #1620 from Concordium/ar/psr-11-oncelock
Ar/psr 11 oncelock
2 parents e243287 + 1858313 commit c310093

5 files changed

Lines changed: 235 additions & 363 deletions

File tree

plt/plt-block-state/benches/hashed_cacheable_reference.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ fn a_warmup() {
2525
#[divan::bench(threads = THREADS)]
2626
fn bench_with_value(bencher: Bencher) {
2727
let hcr = divan::black_box(HashedCacheableRef::new(StoreSerialized(0)));
28-
bencher.bench(|| hcr.with_value(&UnreachableBlobStore, |v| Ok(*v)).unwrap());
28+
bencher.bench(|| hcr.value(&UnreachableBlobStore).unwrap());
2929
}

0 commit comments

Comments
 (0)