mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-17 20:02:43 +00:00
Rust 1.89 compiler lint fix (#7644)
Fix lints for Rust 1.89 beta compiler
This commit is contained in:
@@ -114,7 +114,11 @@ impl<E: EthSpec> KeyValueStore<E> for BeaconNodeBackend<E> {
|
||||
}
|
||||
}
|
||||
|
||||
fn iter_column_keys_from<K: Key>(&self, _column: DBColumn, from: &[u8]) -> ColumnKeyIter<K> {
|
||||
fn iter_column_keys_from<K: Key>(
|
||||
&self,
|
||||
_column: DBColumn,
|
||||
from: &[u8],
|
||||
) -> ColumnKeyIter<'_, K> {
|
||||
match self {
|
||||
#[cfg(feature = "leveldb")]
|
||||
BeaconNodeBackend::LevelDb(txn) => {
|
||||
@@ -127,7 +131,7 @@ impl<E: EthSpec> KeyValueStore<E> for BeaconNodeBackend<E> {
|
||||
}
|
||||
}
|
||||
|
||||
fn iter_column_keys<K: Key>(&self, column: DBColumn) -> ColumnKeyIter<K> {
|
||||
fn iter_column_keys<K: Key>(&self, column: DBColumn) -> ColumnKeyIter<'_, K> {
|
||||
match self {
|
||||
#[cfg(feature = "leveldb")]
|
||||
BeaconNodeBackend::LevelDb(txn) => leveldb_impl::LevelDB::iter_column_keys(txn, column),
|
||||
@@ -136,7 +140,7 @@ impl<E: EthSpec> KeyValueStore<E> for BeaconNodeBackend<E> {
|
||||
}
|
||||
}
|
||||
|
||||
fn iter_column_from<K: Key>(&self, column: DBColumn, from: &[u8]) -> ColumnIter<K> {
|
||||
fn iter_column_from<K: Key>(&self, column: DBColumn, from: &[u8]) -> ColumnIter<'_, K> {
|
||||
match self {
|
||||
#[cfg(feature = "leveldb")]
|
||||
BeaconNodeBackend::LevelDb(txn) => {
|
||||
|
||||
Reference in New Issue
Block a user