Skip to content

Commit

Permalink
remove experimental feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathy-bajo committed Jan 23, 2025
1 parent 5a03642 commit 5f3515c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion substrate/frame/message-queue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ workspace = true

[dependencies]
codec = { features = ["derive"], workspace = true }
frame = { workspace = true, features = ["runtime"]}
frame = { workspace = true, features = ["runtime", "try-runtime"]}
environmental = { workspace = true }
log = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
Expand Down
5 changes: 4 additions & 1 deletion substrate/frame/message-queue/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ use scale_info::TypeInfo;

pub use weights::WeightInfo;

#[cfg(feature = "try-runtime")]
use frame::try_runtime::TryRuntimeError;

/// Type for identifying a page.
type PageIndex = u32;

Expand Down Expand Up @@ -1611,7 +1614,7 @@ pub(crate) fn with_service_mutex<F: FnOnce() -> R, R>(f: F) -> Result<R, ()> {
let hold = token::with(|t| t.take()).ok_or(()).defensive()?.ok_or(())?;

// Put the token back when we're done.
defer! {
frame::deps::sp_core::defer! {
token::with(|t| {
*t = Some(hold);
});
Expand Down
7 changes: 4 additions & 3 deletions substrate/frame/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ pub mod prelude {
/// Runtime traits
#[doc(no_inline)]
pub use sp_runtime::traits::{
BlockNumberProvider, Bounded, Convert, DispatchInfoOf, Dispatchable, One, ReduceBy,
BlockNumberProvider, Bounded, Convert, DispatchInfoOf, Dispatchable, ReduceBy,
ReplaceWithDefault, SaturatedConversion, Saturating, StaticLookup,
TrailingZeroInput, Zero,
TrailingZeroInput,
};

/// Bounded storage related types.
Expand Down Expand Up @@ -334,7 +334,7 @@ pub mod testing_prelude {
/// Other helper macros from `frame_support` that help with asserting in tests.
pub use frame_support::{
assert_err, assert_err_ignore_postinfo, assert_error_encoded_size, assert_noop, assert_ok,
assert_storage_noop, ensure, hypothetically, storage_alias,
assert_storage_noop, ensure, hypothetically, storage_alias, StorageNoopGuard,
};

pub use frame_system::{self, mocking::*, RunToBlockHooks};
Expand Down Expand Up @@ -543,6 +543,7 @@ pub mod traits {
/// This is already part of the [`prelude`].
pub mod arithmetic {
pub use sp_arithmetic::{traits::*, *};
pub use sp_runtime::traits::{Zero, One};
}

/// All derive macros used in frame.
Expand Down

0 comments on commit 5f3515c

Please sign in to comment.