Skip to content

Commit

Permalink
chore: flatten reth-primitives dep (#13082)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Dec 2, 2024
1 parent 039f121 commit 9831953
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions crates/storage/errors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ workspace = true

[dependencies]
# reth
reth-primitives.workspace = true
reth-primitives-traits.workspace = true
reth-fs-util.workspace = true
reth-static-file-types.workspace = true

# ethereum
alloy-eips.workspace = true
Expand All @@ -26,9 +27,9 @@ derive_more.workspace = true
[features]
default = ["std"]
std = [
"reth-primitives/std",
"alloy-eips/std",
"alloy-primitives/std",
"alloy-rlp/std",
"derive_more/std"
"derive_more/std",
"reth-primitives-traits/std"
]
4 changes: 2 additions & 2 deletions crates/storage/errors/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion crates/storage/errors/src/writer.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::db::DatabaseError;
use reth_primitives::StaticFileSegment;
use reth_static_file_types::StaticFileSegment;

/// `UnifiedStorageWriter` related errors
/// `StorageWriter` related errors
Expand Down

0 comments on commit 9831953

Please sign in to comment.