mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: apply same member order (#12253)
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user