Skip to content

Commit 5b83a15

Browse files
committed
fix(store): fix compilation with Rust 1.96
Compiling with Rust 1.96 fails with the following error: error[E0446]: crate-private type `AccountStateForest<Self>` in public interface --> crates/store/src/state/loader.rs:159:10 | 159 | ) -> impl Future<Output = Result<AccountStateForest<Self>, StateInitializationError>> + Send; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak crate-private type | ::: crates/store/src/account_state_forest/mod.rs:93:1 | 93 | pub(crate) struct AccountStateForest<B: Backend = ForestInMemoryBackend> { | ------------------------------------------------------------------------ `AccountStateForest<Self>` declared as crate-private This change makes the AccountForestLoader trait crate-private to fix the issue.
1 parent a2fe3d5 commit 5b83a15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/store/src/state/loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ pub trait TreeStorageLoader: SmtStorage + Sized {
140140
/// For `ForestInMemoryBackend`, the forest is rebuilt from database entries on each startup. For
141141
/// `ForestPersistentBackend`, the forest is loaded directly from disk if data exists, otherwise it
142142
/// is rebuilt from the database and persisted.
143-
pub trait AccountForestLoader: Backend + Sized {
143+
pub(crate) trait AccountForestLoader: Backend + Sized {
144144
/// A configuration type for the implementation.
145145
type Config: std::fmt::Debug + std::default::Default;
146146

0 commit comments

Comments
 (0)