chore: flatten reth-primitives dep (#13082)

This commit is contained in:
Matthias Seitz
2024-12-02 22:55:56 +01:00
committed by GitHub
parent 039f1215d0
commit 9831953781
4 changed files with 9 additions and 7 deletions

View File

@ -3,7 +3,8 @@ use alloc::{boxed::Box, string::String};
use alloy_eips::{BlockHashOrNumber, HashOrNumber};
use alloy_primitives::{Address, BlockHash, BlockNumber, TxNumber, B256};
use derive_more::Display;
use reth_primitives::{GotExpected, StaticFileSegment};
use reth_primitives_traits::GotExpected;
use reth_static_file_types::StaticFileSegment;
/// Provider result type.
pub type ProviderResult<Ok> = Result<Ok, ProviderError>;
@ -165,7 +166,6 @@ impl core::error::Error for ProviderError {
fn source(&self) -> Option<&(dyn core::error::Error + 'static)> {
match self {
Self::Database(source) => core::error::Error::source(source),
Self::Rlp(source) => core::error::Error::source(source),
Self::StorageLockError(source) => core::error::Error::source(source),
Self::UnifiedStorageWriterError(source) => core::error::Error::source(source),
_ => Option::None,

View File

@ -1,5 +1,5 @@
use crate::db::DatabaseError;
use reth_primitives::StaticFileSegment;
use reth_static_file_types::StaticFileSegment;
/// `UnifiedStorageWriter` related errors
/// `StorageWriter` related errors