Fix lints for Rust 1.81 (#6363)

* Fix lints for Rust 1.81
This commit is contained in:
Michael Sproul
2024-09-06 11:45:34 +10:00
committed by GitHub
parent df19b6220a
commit c824142a6d
7 changed files with 16 additions and 35 deletions

View File

@@ -75,10 +75,7 @@ impl Inner {
SszEth1Cache::from_ssz_bytes(bytes)
.map_err(|e| format!("Ssz decoding error: {:?}", e))?
.to_inner(config, spec)
.map(|inner| {
inner.block_cache.write().rebuild_by_hash_map();
inner
})
.inspect(|inner| inner.block_cache.write().rebuild_by_hash_map())
}
/// Returns a reference to the specification.