chore(lint): fix lint storage (#11485)

This commit is contained in:
Emilia Hane
2024-10-04 19:19:02 +02:00
committed by GitHub
parent 1f190ad8ea
commit 16bc9c8b49
11 changed files with 31 additions and 31 deletions

View File

@ -21,7 +21,7 @@ impl<'a, K, V> ForwardInMemoryCursor<'a, K, V> {
}
}
impl<'a, K, V> ForwardInMemoryCursor<'a, K, V>
impl<K, V> ForwardInMemoryCursor<'_, K, V>
where
K: PartialOrd + Clone,
V: Clone,

View File

@ -132,7 +132,7 @@ where
}
}
impl<'a, C> HashedCursor for HashedPostStateAccountCursor<'a, C>
impl<C> HashedCursor for HashedPostStateAccountCursor<'_, C>
where
C: HashedCursor<Value = Account>,
{
@ -276,7 +276,7 @@ where
}
}
impl<'a, C> HashedCursor for HashedPostStateStorageCursor<'a, C>
impl<C> HashedCursor for HashedPostStateStorageCursor<'_, C>
where
C: HashedStorageCursor<Value = U256>,
{
@ -304,7 +304,7 @@ where
}
}
impl<'a, C> HashedStorageCursor for HashedPostStateStorageCursor<'a, C>
impl<C> HashedStorageCursor for HashedPostStateStorageCursor<'_, C>
where
C: HashedStorageCursor<Value = U256>,
{

View File

@ -188,7 +188,7 @@ impl<'a, C> InMemoryStorageTrieCursor<'a, C> {
}
}
impl<'a, C: TrieCursor> InMemoryStorageTrieCursor<'a, C> {
impl<C: TrieCursor> InMemoryStorageTrieCursor<'_, C> {
fn seek_inner(
&mut self,
key: Nibbles,
@ -237,7 +237,7 @@ impl<'a, C: TrieCursor> InMemoryStorageTrieCursor<'a, C> {
}
}
impl<'a, C: TrieCursor> TrieCursor for InMemoryStorageTrieCursor<'a, C> {
impl<C: TrieCursor> TrieCursor for InMemoryStorageTrieCursor<'_, C> {
fn seek_exact(
&mut self,
key: Nibbles,

View File

@ -455,7 +455,7 @@ pub mod serde_bincode_compat {
}
}
impl<'a> SerializeAs<super::TrieUpdates> for TrieUpdates<'a> {
impl SerializeAs<super::TrieUpdates> for TrieUpdates<'_> {
fn serialize_as<S>(source: &super::TrieUpdates, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
@ -515,7 +515,7 @@ pub mod serde_bincode_compat {
}
}
impl<'a> SerializeAs<super::StorageTrieUpdates> for StorageTrieUpdates<'a> {
impl SerializeAs<super::StorageTrieUpdates> for StorageTrieUpdates<'_> {
fn serialize_as<S>(
source: &super::StorageTrieUpdates,
serializer: S,