chore: apply same member order (#12253)

This commit is contained in:
Matthias Seitz
2024-11-01 12:11:54 +01:00
committed by GitHub
parent 2758a560c0
commit c6b740801f
13 changed files with 98 additions and 98 deletions

View File

@ -32,11 +32,11 @@ pub struct NoopHashedAccountCursor;
impl HashedCursor for NoopHashedAccountCursor {
type Value = Account;
fn next(&mut self) -> Result<Option<(B256, Self::Value)>, DatabaseError> {
fn seek(&mut self, _key: B256) -> Result<Option<(B256, Self::Value)>, DatabaseError> {
Ok(None)
}
fn seek(&mut self, _key: B256) -> Result<Option<(B256, Self::Value)>, DatabaseError> {
fn next(&mut self) -> Result<Option<(B256, Self::Value)>, DatabaseError> {
Ok(None)
}
}
@ -49,11 +49,11 @@ pub struct NoopHashedStorageCursor;
impl HashedCursor for NoopHashedStorageCursor {
type Value = U256;
fn next(&mut self) -> Result<Option<(B256, Self::Value)>, DatabaseError> {
fn seek(&mut self, _key: B256) -> Result<Option<(B256, Self::Value)>, DatabaseError> {
Ok(None)
}
fn seek(&mut self, _key: B256) -> Result<Option<(B256, Self::Value)>, DatabaseError> {
fn next(&mut self) -> Result<Option<(B256, Self::Value)>, DatabaseError> {
Ok(None)
}
}

View File

@ -211,8 +211,8 @@ impl PrefixSet {
}
impl<'a> IntoIterator for &'a PrefixSet {
type IntoIter = std::slice::Iter<'a, reth_trie_common::Nibbles>;
type Item = &'a reth_trie_common::Nibbles;
type IntoIter = std::slice::Iter<'a, reth_trie_common::Nibbles>;
fn into_iter(self) -> Self::IntoIter {
self.iter()
}