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

@@ -98,14 +98,13 @@ impl<E: EthSpec> KeyValueStore<E> for LevelDB<E> {
.get(self.read_options(), BytesKey::from_vec(column_key))
.map_err(Into::into)
.map(|opt| {
opt.map(|bytes| {
opt.inspect(|bytes| {
metrics::inc_counter_vec_by(
&metrics::DISK_DB_READ_BYTES,
&[col],
bytes.len() as u64,
);
metrics::stop_timer(timer);
bytes
})
})
}