Switch All construct_runtimes to New Syntax (#2979)

Clean up all the old syntax.

---------

Co-authored-by: command-bot <>
Co-authored-by: gupnik <nikhilgupta.iitk@gmail.com>
Co-authored-by: Nikhil Gupta <17176722+gupnik@users.noreply.github.com>
Co-authored-by: Maksym H <1177472+mordamax@users.noreply.github.com>
This commit is contained in:
joe petrowski
2024-01-22 08:15:53 +01:00
committed by GitHub
parent d37a45650e
commit 757ae372f7
133 changed files with 792 additions and 847 deletions
@@ -21,7 +21,7 @@
//! order to get all the pallet parts for each pallet.
//!
//! Pallets can define their parts:
//! - Implicitely: `System: frame_system`
//! - Implicitly: `System: frame_system`
//! - Explicitly: `System: frame_system::{Pallet, Call}`
//!
//! The `construct_runtime` transitions from the implicit definition to the explict one.
@@ -172,7 +172,7 @@
//!
//! This call has no implicit pallet parts, thus it will expand to the runtime construction:
//! ```ignore
//! pub struct Runtime { ... }
//! pub enum Runtime { ... }
//! pub struct Call { ... }
//! impl Call ...
//! pub enum Origin { ... }
@@ -342,7 +342,7 @@ fn construct_runtime_final_expansion(
syn::Error::new(
pallets_token.span.join(),
"`System` pallet declaration is missing. \
Please add this line: `System: frame_system::{Pallet, Call, Storage, Config<T>, Event<T>},`",
Please add this line: `System: frame_system,`",
)
})?;
if !system_pallet.cfg_pattern.is_empty() {