chore: minor benchmark fixes

This commit is contained in:
Bobbin Threadbare
2024-12-24 01:12:51 -08:00
parent 8db71b66d9
commit ef3183fc0b
3 changed files with 23 additions and 19 deletions

View File

@@ -303,7 +303,7 @@ impl PartialMmr {
if leaf_pos + 1 == self.forest
&& path.depth() == 0
&& self.peaks.last().map_or(false, |v| *v == leaf)
&& self.peaks.last().is_some_and(|v| *v == leaf)
{
self.track_latest = true;
return Ok(());