Commit 5b83a15
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments