Remove default expansion from construct_runtime! (#4937)

This removes the following syntactic sugar from `construct_runtime!`:

- Expansion of `default` to the default set of module parts
- Expansion of `System: system` to the default set of module parts

The macro now requires the user to provide all the module parts of a pallet.
This commit is contained in:
Bastian Köcher
2020-02-15 14:40:29 +01:00
committed by GitHub
parent 4053201046
commit 625e963aa2
18 changed files with 158 additions and 221 deletions
@@ -217,8 +217,8 @@ fn decl_runtime_metadata<'a>(
let filtered_names: Vec<_> = module_declaration
.module_parts()
.into_iter()
.filter(|part| part.name != "Module")
.map(|part| part.name.clone())
.filter(|part| part.name() != "Module")
.map(|part| part.ident())
.collect();
(module_declaration, filtered_names)
})